added support for multiple accounts with an account switcher in settings
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user