mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
ios: fix notification badge count (#903)
This commit is contained in:
committed by
GitHub
parent
afbc7dd2c1
commit
e8749debec
@@ -162,7 +162,10 @@ final class ChatModel: ObservableObject {
|
||||
if case .rcvNew = cItem.meta.itemStatus {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
|
||||
if self.chatId == cInfo.id {
|
||||
Task { await apiMarkChatItemRead(cInfo, cItem) }
|
||||
Task {
|
||||
await apiMarkChatItemRead(cInfo, cItem)
|
||||
NtfManager.shared.decNtfBadgeCount()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user