File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,7 @@ class PerAccountStore extends ChangeNotifier with ChannelStore, MessageStore {
303
303
304
304
final GlobalStore _globalStore;
305
305
final ApiConnection connection; // TODO(#135): update zulipFeatureLevel with events
306
+ UpdateMachine ? updateMachine;
306
307
307
308
bool get isLoading => _isLoading;
308
309
bool _isLoading = false ;
@@ -420,6 +421,7 @@ class PerAccountStore extends ChangeNotifier with ChannelStore, MessageStore {
420
421
unreads.dispose ();
421
422
_messages.dispose ();
422
423
typingStatus.dispose ();
424
+ updateMachine? .dispose (); // TODO is updateMachine ever null except in tests?
423
425
super .dispose ();
424
426
}
425
427
@@ -730,6 +732,7 @@ class UpdateMachine {
730
732
);
731
733
final updateMachine = UpdateMachine .fromInitialSnapshot (
732
734
store: store, initialSnapshot: initialSnapshot);
735
+ store.updateMachine = updateMachine;
733
736
updateMachine.poll ();
734
737
// TODO do registerNotificationToken before registerQueue:
735
738
// https://github.com/zulip/zulip-flutter/pull/325#discussion_r1365982807
You can’t perform that action at this time.
0 commit comments