Fix redraw of incremented reaction counts
This commit is contained in:
parent
75471c3242
commit
8c3c4d31f1
@ -133,9 +133,10 @@ func newUIMessage(evt *muksevt.Event, displayname string, renderer MessageRender
|
|||||||
|
|
||||||
func (msg *UIMessage) AddReaction(key string) {
|
func (msg *UIMessage) AddReaction(key string) {
|
||||||
found := false
|
found := false
|
||||||
for _, rs := range msg.Reactions {
|
for i, rs := range msg.Reactions {
|
||||||
if rs.Key == key {
|
if rs.Key == key {
|
||||||
rs.Count++
|
rs.Count++
|
||||||
|
msg.Reactions[i] = rs
|
||||||
found = true
|
found = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user