🐛 Fix message history display latency
This commit is contained in:
parent
7034ff80db
commit
7c35323279
@ -18,9 +18,13 @@ class ChatHistoryController {
|
||||
}
|
||||
|
||||
Future<void> getMessages(Channel channel, String scope) async {
|
||||
syncHistory(channel);
|
||||
|
||||
isLoading.value = true;
|
||||
totalHistoryCount.value =
|
||||
await database.syncMessages(channel, scope: scope);
|
||||
totalHistoryCount.value = await database.syncMessages(
|
||||
channel,
|
||||
scope: scope,
|
||||
);
|
||||
await syncHistory(channel);
|
||||
isLoading.value = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user