mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 18:56:49 +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() {
|
fun clear() {
|
||||||
|
lastAccount = null
|
||||||
lastNotes = null
|
lastNotes = null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -30,6 +30,10 @@ fun NotificationScreen(
|
|||||||
val accountState by accountViewModel.accountLiveData.observeAsState()
|
val accountState by accountViewModel.accountLiveData.observeAsState()
|
||||||
val account = accountState?.account ?: return
|
val account = accountState?.account ?: return
|
||||||
|
|
||||||
|
if (scrollToTop) {
|
||||||
|
notifFeedViewModel.clear()
|
||||||
|
}
|
||||||
|
|
||||||
LaunchedEffect(accountViewModel) {
|
LaunchedEffect(accountViewModel) {
|
||||||
NotificationFeedFilter.account = account
|
NotificationFeedFilter.account = account
|
||||||
notifFeedViewModel.invalidateData()
|
notifFeedViewModel.invalidateData()
|
||||||
|
Reference in New Issue
Block a user