File tree 2 files changed +3
-0
lines changed
2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -785,6 +785,7 @@ class UpdateMachine {
785
785
switch (e) {
786
786
case ZulipApiException (code: 'BAD_EVENT_QUEUE_ID' ):
787
787
assert (debugLog ('Lost event queue for $store . Replacing…' ));
788
+ reportErrorToUserBriefly ('Reconnecting to server.' );
788
789
await store._globalStore._reloadPerAccount (store.accountId);
789
790
dispose ();
790
791
debugLog ('… Event queue replaced.' );
Original file line number Diff line number Diff line change @@ -406,7 +406,9 @@ void main() {
406
406
});
407
407
updateMachine.debugAdvanceLoop ();
408
408
async .flushMicrotasks ();
409
+ check (debugLastReportedError).isNull ();
409
410
await Future <void >.delayed (Duration .zero);
411
+ check (takeLastReportedError ()).isNotNull ().contains ('Reconnecting to server.' );
410
412
check (store).isLoading.isTrue ();
411
413
412
414
// The global store has a new store.
You can’t perform that action at this time.
0 commit comments