Fix redraw of incremented reaction counts

This commit is contained in:
n-peugnet 2022-10-14 13:41:09 +02:00
parent 75471c3242
commit 8c3c4d31f1

View File

@ -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
} }