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:
@@ -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;
|
||||
|
@@ -503,7 +503,7 @@ struct ActionPhoneCall {
|
||||
Disconnect,
|
||||
Hangup,
|
||||
Busy,
|
||||
AllowGroupCall,
|
||||
MigrateConferenceCall,
|
||||
};
|
||||
DiscardReason discardReason = DiscardReason::Unknown;
|
||||
int duration = 0;
|
||||
|
@@ -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 "";
|
||||
}());
|
||||
|
Reference in New Issue
Block a user