forked from Mirrors/gomuks
Fix redraw of incremented reaction counts
This commit is contained in:
parent
75471c3242
commit
8c3c4d31f1
1 changed files with 2 additions and 1 deletions
|
@ -133,9 +133,10 @@ func newUIMessage(evt *muksevt.Event, displayname string, renderer MessageRender
|
|||
|
||||
func (msg *UIMessage) AddReaction(key string) {
|
||||
found := false
|
||||
for _, rs := range msg.Reactions {
|
||||
for i, rs := range msg.Reactions {
|
||||
if rs.Key == key {
|
||||
rs.Count++
|
||||
msg.Reactions[i] = rs
|
||||
found = true
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue