Skip to content

Commit 48863bb

Browse files
committed
chore(notifications): if notification received is a currency info deeplink, proactively update token accounts
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent e1bcf11 commit 48863bb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

apps/flipcash/shared/notifications/src/main/kotlin/com/flipcash/app/notifications/NotificationService.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ class NotificationService : FirebaseMessagingService(),
9999
NotificationPayload.fromEncoded(protoString)
100100
}
101101

102+
if (payload?.navigation is NavigationTrigger.CurrencyInfo) {
103+
launch {
104+
tokenController.update()
105+
}
106+
}
107+
102108
notificationManager.createNotificationChannel(channel)
103109

104110
val notificationBuilder: NotificationCompat.Builder =

0 commit comments

Comments
 (0)