added support for multiple accounts with an account switcher in settings

This commit is contained in:
MineTec committed 2026-09-27 14:54:10 +02:00
1 parent 5e65c4671a
commit 27563a6dc1
33 files changed
+1801 -462

No files matched your search

@@ -87,8 +87,10 @@ class ChatListBloc
/// Concurrent callers (tab switch, poll, push, resume) join the running
/// refresh instead of each fetching and re-emitting the full room list.
Future<void> refresh({bool renew = true, bool silent = false}) =>
_refreshFlight.run(() => _refresh(renew: renew, silent: silent));
Future<void> refresh({bool renew = true, bool silent = false}) async {
if (!ownsSession) return;
await _refreshFlight.run(() => _refresh(renew: renew, silent: silent));
}
/// Skips the refresh when the list was fetched within [maxAge].
Future<void> refreshIfOlderThan(Duration maxAge) {