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

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 14:29:26 -04:00 committed by GitHub
parent 0c4b7e92a0
commit e94fb9c6f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

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,