Groups Notifications on Double click in the navigation row.

This commit is contained in:
Vitor Pamplona
2023-03-30 17:52:35 -04:00
parent 33467c62fa
commit 04a3fe2f4c
2 changed files with 5 additions and 0 deletions

View File

@@ -173,6 +173,7 @@ open class CardFeedViewModel(val dataSource: FeedFilter<Note>) : ViewModel() {
}
fun clear() {
lastAccount = null
lastNotes = null
}

View File

@@ -30,6 +30,10 @@ fun NotificationScreen(
val accountState by accountViewModel.accountLiveData.observeAsState()
val account = accountState?.account ?: return
if (scrollToTop) {
notifFeedViewModel.clear()
}
LaunchedEffect(accountViewModel) {
NotificationFeedFilter.account = account
notifFeedViewModel.invalidateData()