BugFix for notifications sometimes not reassembling when pressing the bottom button.
This commit is contained in:
@@ -130,7 +130,7 @@ fun AppNavigation(
|
||||
|
||||
if (scrollToTop) {
|
||||
notifFeedViewModel.clear()
|
||||
notifFeedViewModel.sendToTop()
|
||||
notifFeedViewModel.invalidateDataAndSendToTop()
|
||||
it.arguments?.remove("scrollToTop")
|
||||
}
|
||||
|
||||
|
||||
+1
-2
@@ -101,11 +101,10 @@ fun WatchAccountForNotifications(
|
||||
accountViewModel: AccountViewModel
|
||||
) {
|
||||
val accountState by accountViewModel.accountLiveData.observeAsState()
|
||||
val account = remember(accountState) { accountState?.account } ?: return
|
||||
|
||||
var firstTime by remember(accountViewModel) { mutableStateOf(true) }
|
||||
|
||||
LaunchedEffect(accountViewModel, account.defaultNotificationFollowList) {
|
||||
LaunchedEffect(accountViewModel, accountState?.account?.defaultNotificationFollowList) {
|
||||
if (firstTime) {
|
||||
firstTime = false
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user