Adding an additional refresher of notification icons based on new notes in the database.

pull/147/head
Vitor Pamplona 2023-02-21 11:31:35 -05:00
rodzic ccf7d78cea
commit 4b0d1d32a6
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -121,6 +121,10 @@ private fun NotifiableIcon(item: Route, currentRoute: String?, accountViewModel:
hasNewItems = item.hasNewItems(account, notif.cache, context)
}
LaunchedEffect(key1 = db) {
hasNewItems = item.hasNewItems(account, notif.cache, context)
}
if (hasNewItems) {
Box(
Modifier