ios: notification badge count (#822)

This commit is contained in:
Evgeny Poberezkin
2022-07-20 08:58:53 +01:00
committed by GitHub
parent add82d73fa
commit 252897d0ff
6 changed files with 58 additions and 14 deletions
+1
View File
@@ -594,6 +594,7 @@ func startChat() throws {
m.userSMPServers = try getUserSMPServers()
let chats = try apiGetChats()
m.chats = chats.map { Chat.init($0) }
NtfManager.shared.setNtfBadgeCount(m.totalUnreadCount())
try refreshCallInvitations()
(m.savedToken, m.tokenStatus, m.notificationMode) = apiGetNtfToken()
if let token = m.deviceToken {