Fix removing message from map

This commit is contained in:
Andrea Maria Piana 2021-09-08 11:55:06 +02:00
parent 06d4163de8
commit b48522c59b
1 changed files with 5 additions and 0 deletions

View File

@ -259,6 +259,11 @@ func (r *MessengerResponse) AddRemovedMessage(rm *RemovedMessage) {
}
r.removedMessages[rm.MessageID] = rm
// Remove original message from the map
if len(r.messages) != 0 && r.messages[rm.MessageID] != nil {
delete(r.messages, rm.MessageID)
}
}
func (r *MessengerResponse) AddActivityCenterNotifications(ns []*ActivityCenterNotification) {