fix(notif-indicator): evaluate the notifications on app start (#15872)

Fixes #15835

Evaluate if we have notification on app start (when chats are loaded) so that the notification icon can be shown if we open the app **not** in the chat (eg in the wallet)
This commit is contained in:
Jonathan Rainville 2024-07-31 09:59:56 -04:00 committed by GitHub
parent 7560ac4d0b
commit 03d5a3ca2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -129,6 +129,8 @@ type
method calculateProfileSectionHasNotification*[T](self: Module[T]): bool
proc switchToContactOrDisplayUserProfile[T](self: Module[T], publicKey: string)
method activateStatusDeepLink*[T](self: Module[T], statusDeepLink: string)
proc checkIfWeHaveNotifications[T](self: Module[T])
proc newModule*[T](
delegate: T,
@ -746,6 +748,8 @@ method onChatsLoaded*[T](
if self.statusDeepLinkToActivate != "":
self.activateStatusDeepLink(self.statusDeepLinkToActivate)
self.checkIfWeHaveNotifications()
method onCommunityDataLoaded*[T](
self: Module[T],
events: EventEmitter,