Skip to content

Commit

Permalink
fix(notif-indicator): evaluate the notifications on app start
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
jrainville committed Jul 29, 2024
1 parent df15057 commit 62e57eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/modules/main/module.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -746,6 +748,8 @@ method onChatsLoaded*[T](
if self.statusDeepLinkToActivate != "":
self.activateStatusDeepLink(self.statusDeepLinkToActivate)

self.checkIfWeHaveNotifications()

method onCommunityDataLoaded*[T](
self: Module[T],
events: EventEmitter,
Expand Down

0 comments on commit 62e57eb

Please sign in to comment.