ios: fix showing notification on sent messages

This commit is contained in:
Evgeny Poberezkin 2024-02-17 21:09:19 +00:00
parent 865a32c608
commit 2a321b3ff8
No known key found for this signature in database
GPG Key ID: 494BDDD9A28B577D

View File

@ -1861,7 +1861,9 @@ func chatItemSimpleUpdate(_ user: any UserLike, _ aChatItem: AChatItem) async {
let cItem = aChatItem.chatItem
if active(user) {
if await MainActor.run(body: { m.upsertChatItem(cInfo, cItem) }) {
NtfManager.shared.notifyMessageReceived(user, cInfo, cItem)
if cItem.showNotification {
NtfManager.shared.notifyMessageReceived(user, cInfo, cItem)
}
}
}
}