Skip to content

Commit 96379b4

Browse files
satyam372PIG208
andcommitted
store: Make isLoading false after getting a event queue
Co-authored-by: Zixuan James Li <[email protected]> Fixes: #979
1 parent 03dfdf1 commit 96379b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/model/store.dart

+2
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ class PerAccountStore extends ChangeNotifier with EmojiStore, ChannelStore, Mess
504504
switch (event) {
505505
case HeartbeatEvent():
506506
assert(debugLog("server event: heartbeat"));
507+
isLoading = false;
507508

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

0 commit comments

Comments
 (0)