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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user