diff --git a/VERSION b/VERSION index 0a032fc91..7800396ce 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.109.3 +0.109.4 diff --git a/protocol/activity_center_persistence.go b/protocol/activity_center_persistence.go index 396eb52ad..3c4724f74 100644 --- a/protocol/activity_center_persistence.go +++ b/protocol/activity_center_persistence.go @@ -43,6 +43,10 @@ func (db sqlitePersistence) DeleteActivityCenterNotificationForMessage(chatID st var ids []types.HexBytes for _, notification := range notifications { + if notification.LastMessage != nil && notification.LastMessage.ID == messageID { + ids = append(ids, notification.ID) + } + if notification.Message != nil && notification.Message.ID == messageID { ids = append(ids, notification.ID) } diff --git a/protocol/messenger_handler.go b/protocol/messenger_handler.go index 8c6c0c072..14e195f95 100644 --- a/protocol/messenger_handler.go +++ b/protocol/messenger_handler.go @@ -1167,6 +1167,10 @@ func (m *Messenger) HandleDeleteMessage(state *ReceivedMessageState, deleteMessa if err := m.updateLastMessage(chat); err != nil { return err } + + if chat.LastMessage != nil && chat.LastMessage.Seen == false && chat.OneToOne() && !chat.Active { + m.createMessageNotification(chat, state) + } } state.Response.AddRemovedMessage(&RemovedMessage{MessageID: messageID, ChatID: chat.ID})