mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Fix unread message counter
This commit is contained in:
parent
89eb159a50
commit
fa44e97232
2 changed files with 5 additions and 1 deletions
|
|
@ -1146,7 +1146,7 @@ struct ContentView: View {
|
|||
MagicSearchSingleton.shared.searchForContacts(sourceFlags: MagicSearch.Source.Friends.rawValue | MagicSearch.Source.LdapServers.rawValue)
|
||||
}
|
||||
.onReceive(pub) { _ in
|
||||
conversationsListViewModel.refreshContactAvatarModel()
|
||||
conversationsListViewModel.computeChatRoomsList(filter: "")
|
||||
historyListViewModel.refreshHistoryAvatarModel()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,6 +90,10 @@ class ConversationsListViewModel: ObservableObject {
|
|||
}
|
||||
})
|
||||
|
||||
self.mCoreSuscriptions.insert(core.publisher?.onChatRoomRead?.postOnCoreQueue { _ in
|
||||
self.computeChatRoomsList(filter: "")
|
||||
})
|
||||
|
||||
self.mCoreSuscriptions.insert(core.publisher?.onMessageSent?.postOnCoreQueue { _ in
|
||||
self.computeChatRoomsList(filter: "")
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue