mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 08:57:35 +02:00
Adding an additional refresher of notification icons based on new notes in the database.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user