mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Apply all queued updates on reload.
This commit is contained in:
parent
2f75e6bbe2
commit
b390e0766b
1 changed files with 6 additions and 1 deletions
|
@ -378,7 +378,12 @@ void GroupCall::reload() {
|
|||
"Reloading with queued: %1"
|
||||
).arg(_queuedUpdates.size()));
|
||||
|
||||
_queuedUpdates.clear();
|
||||
while (!_queuedUpdates.empty()) {
|
||||
const auto &entry = _queuedUpdates.front();
|
||||
const auto update = entry.second;
|
||||
_queuedUpdates.erase(_queuedUpdates.begin());
|
||||
applyUpdate(update);
|
||||
}
|
||||
_reloadByQueuedUpdatesTimer.cancel();
|
||||
|
||||
_reloadRequestId = api().request(
|
||||
|
|
Loading…
Add table
Reference in a new issue