mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-03-30 16:25:57 +00:00
ios: do not show notifications on update events in inactive profiles (#1959)
This commit is contained in:
committed by
GitHub
parent
d5f6b76ec5
commit
f6f3d17383
@@ -1270,11 +1270,8 @@ func chatItemSimpleUpdate(_ user: User, _ aChatItem: AChatItem) {
|
||||
let m = ChatModel.shared
|
||||
let cInfo = aChatItem.chatInfo
|
||||
let cItem = aChatItem.chatItem
|
||||
let notify = { NtfManager.shared.notifyMessageReceived(user, cInfo, cItem) }
|
||||
if !active(user) {
|
||||
notify()
|
||||
} else if m.upsertChatItem(cInfo, cItem) {
|
||||
notify()
|
||||
if active(user) && m.upsertChatItem(cInfo, cItem) {
|
||||
NtfManager.shared.notifyMessageReceived(user, cInfo, cItem)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user