diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/ChatroomListFeedView.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/ChatroomListFeedView.kt index 46391ad37..f056afb5b 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/ChatroomListFeedView.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/ChatroomListFeedView.kt @@ -99,8 +99,8 @@ private fun FeedLoaded( val notificationCache = notificationCacheState.value ?: return val context = LocalContext.current.applicationContext - if (markAsRead.value) { - LaunchedEffect(key1 = notificationCache) { + LaunchedEffect(key1 = markAsRead.value) { + if (markAsRead.value) { for (note in state.feed.value) { note.event?.let { var route = ""