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

Update API scheme on layer 202.

This commit is contained in:
John Preston
2025-03-26 23:21:42 +05:00
parent 33a15e69bb
commit 0e46a4402a
11 changed files with 40 additions and 22 deletions

View File

@@ -1471,8 +1471,8 @@ ServiceAction ParseServiceAction(
return Reason::Hangup;
}, [](const MTPDphoneCallDiscardReasonBusy &data) {
return Reason::Busy;
}, [](const MTPDphoneCallDiscardReasonAllowGroupCall &) {
return Reason::AllowGroupCall;
}, [](const MTPDphoneCallDiscardReasonMigrateConferenceCall &) {
return Reason::MigrateConferenceCall;
});
}
result.content = content;

View File

@@ -503,7 +503,7 @@ struct ActionPhoneCall {
Disconnect,
Hangup,
Busy,
AllowGroupCall,
MigrateConferenceCall,
};
DiscardReason discardReason = DiscardReason::Unknown;
int duration = 0;

View File

@@ -472,6 +472,8 @@ QByteArray SerializeMessage(
case Reason::Disconnect: return "disconnect";
case Reason::Hangup: return "hangup";
case Reason::Missed: return "missed";
case Reason::MigrateConferenceCall:
return "migrate_conference_all";
}
return "";
}());