mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 06:07:45 +00:00
Apply all queued updates on reload.
This commit is contained in:
parent
2f75e6bbe2
commit
b390e0766b
@ -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…
x
Reference in New Issue
Block a user