2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Update API scheme, something works now.

This commit is contained in:
John Preston
2025-03-28 00:41:05 +05:00
parent 0e46a4402a
commit 7deb5bfdf2
18 changed files with 464 additions and 157 deletions

View File

@@ -690,7 +690,14 @@ void Instance::handleGroupCallUpdate(
}, [](const auto &) -> CallId {
Unexpected("Type in Instance::handleGroupCallUpdate.");
});
if (const auto existing = session->data().groupCall(callId)) {
if (update.type() == mtpc_updateGroupCallChainBlocks) {
const auto existing = session->data().groupCall(callId);
if (existing
&& _currentGroupCall
&& _currentGroupCall->lookupReal() == existing) {
_currentGroupCall->handleUpdate(update);
}
} else if (const auto existing = session->data().groupCall(callId)) {
existing->enqueueUpdate(update);
} else {
applyGroupCallUpdateChecked(session, update);