ios: fix showing notification on sent messages
This commit is contained in:
parent
865a32c608
commit
2a321b3ff8
@ -1861,10 +1861,12 @@ func chatItemSimpleUpdate(_ user: any UserLike, _ aChatItem: AChatItem) async {
|
|||||||
let cItem = aChatItem.chatItem
|
let cItem = aChatItem.chatItem
|
||||||
if active(user) {
|
if active(user) {
|
||||||
if await MainActor.run(body: { m.upsertChatItem(cInfo, cItem) }) {
|
if await MainActor.run(body: { m.upsertChatItem(cInfo, cItem) }) {
|
||||||
|
if cItem.showNotification {
|
||||||
NtfManager.shared.notifyMessageReceived(user, cInfo, cItem)
|
NtfManager.shared.notifyMessageReceived(user, cInfo, cItem)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func updateContactsStatus(_ contactRefs: [ContactRef], status: NetworkStatus) async {
|
func updateContactsStatus(_ contactRefs: [ContactRef], status: NetworkStatus) async {
|
||||||
let m = ChatModel.shared
|
let m = ChatModel.shared
|
||||||
|
Loading…
Reference in New Issue
Block a user