BugFix for notifications sometimes not reassembling when pressing the bottom button.

This commit is contained in:
Vitor Pamplona
2023-06-08 16:28:48 -04:00
parent 5b864fa1d9
commit 8b852d32e4
2 changed files with 2 additions and 3 deletions
@@ -130,7 +130,7 @@ fun AppNavigation(
if (scrollToTop) {
notifFeedViewModel.clear()
notifFeedViewModel.sendToTop()
notifFeedViewModel.invalidateDataAndSendToTop()
it.arguments?.remove("scrollToTop")
}
@@ -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 {