mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-20 19:30:46 +02:00
Groups Notifications on Double click in the navigation row.
This commit is contained in:
@@ -173,6 +173,7 @@ open class CardFeedViewModel(val dataSource: FeedFilter<Note>) : ViewModel() {
|
||||
}
|
||||
|
||||
fun clear() {
|
||||
lastAccount = null
|
||||
lastNotes = null
|
||||
}
|
||||
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user