Skip to content

Commit

Permalink
enhancement: avoid potential refresh loop in timeline initial loading (
Browse files Browse the repository at this point in the history
  • Loading branch information
AkesiSeli authored Oct 9, 2024
1 parent d355846 commit e1a981a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,10 @@ class TimelineViewModel(
}

private suspend fun refresh(initial: Boolean = false) {
// workaround to handle refresh after initial network call failed
if (activeAccountMonitor.isNotLoggedButItShould()) {
activeAccountMonitor.forceRefresh()
return
}
// needed as a last-resort to update circles if edited elsewhere
val isLogged = identityRepository.currentUser.value != null
Expand Down

0 comments on commit e1a981a

Please sign in to comment.