mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-04 03:33:16 +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)
|
hasNewItems = item.hasNewItems(account, notif.cache, context)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LaunchedEffect(key1 = db) {
|
||||||
|
hasNewItems = item.hasNewItems(account, notif.cache, context)
|
||||||
|
}
|
||||||
|
|
||||||
if (hasNewItems) {
|
if (hasNewItems) {
|
||||||
Box(
|
Box(
|
||||||
Modifier
|
Modifier
|
||||||
|
Reference in New Issue
Block a user