Fix removing message from map
This commit is contained in:
parent
06d4163de8
commit
b48522c59b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue