Skip to content

store: Make isLoading false after getting a event queue #1013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/model/store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,7 @@ class PerAccountStore extends ChangeNotifier with EmojiStore, ChannelStore, Mess
switch (event) {
case HeartbeatEvent():
assert(debugLog("server event: heartbeat"));
isLoading = false;

case RealmEmojiUpdateEvent():
assert(debugLog("server event: realm_emoji/update"));
Expand Down Expand Up @@ -940,6 +941,7 @@ class UpdateMachine {
assert(debugLog('Lost event queue for $store. Replacing…'));
// This disposes the store, which disposes this update machine.
await store._globalStore._reloadPerAccount(store.accountId);
store.isLoading = false;
debugLog('… Event queue replaced.');
return;

Expand Down
Loading