2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Support voice chats in legacy groups, with migration.

This commit is contained in:
John Preston
2020-12-14 16:52:18 +04:00
parent cd3b989e70
commit 1b624d67b8
30 changed files with 584 additions and 389 deletions

View File

@@ -1053,9 +1053,11 @@ void History::applyServiceChanges(
} break;
case mtpc_messageActionGroupCall: {
const auto &d = action.c_messageActionGroupCall();
if (const auto channel = peer->asChannel()) {
const auto &d = action.c_messageActionGroupCall();
channel->setCall(d.vcall());
channel->setGroupCall(d.vcall());
} else if (const auto chat = peer->asChat()) {
chat->setGroupCall(d.vcall());
}
} break;
}