Improve group call service messages.

This commit is contained in:
John Preston
2020-12-01 17:17:05 +03:00
parent 5a324756fd
commit c82bc691e0
6 changed files with 104 additions and 13 deletions
+9
View File
@@ -1799,6 +1799,15 @@ void Updates::feedUpdate(const MTPUpdate &update) {
case mtpc_updatePhoneCallSignalingData:
case mtpc_updateGroupCallParticipants:
case mtpc_updateGroupCall: {
if (update.type() == mtpc_updateGroupCall) {
const auto &data = update.c_updateGroupCall();
if (data.vcall().type() == mtpc_groupCallDiscarded) {
const auto &call = data.vcall().c_groupCallDiscarded();
session().data().groupCallDiscarded(
call.vid().v,
call.vduration().v);
}
}
Core::App().calls().handleUpdate(&session(), update);
} break;