Add updateNewCallSignalingData.
GitOrigin-RevId: ce458fb7ed05fd202f255e348c009dad248018ab
This commit is contained in:
parent
1bb853a3ef
commit
cdf6acac32
@ -3189,6 +3189,9 @@ updateFileGenerationStop generation_id:int64 = Update;
|
||||
//@description New call was created or information about a call was updated @call New data about a call
|
||||
updateCall call:call = Update;
|
||||
|
||||
//@description New call signaling data arrived @call_id The call identifier @data The data
|
||||
updateNewCallSignalingData call_id:int32 data:bytes = Update;
|
||||
|
||||
//@description Some privacy setting rules have been changed @setting The privacy setting @rules New privacy rules
|
||||
updateUserPrivacySettingRules setting:UserPrivacySetting rules:userPrivacySettingRules = Update;
|
||||
|
||||
|
Binary file not shown.
@ -132,7 +132,14 @@ void CallActor::create_call(UserId user_id, tl_object_ptr<telegram_api::InputUse
|
||||
}
|
||||
|
||||
void CallActor::update_call_signaling_data(string data) {
|
||||
// nothing to do
|
||||
if (call_state_.type != CallState::Type::Ready) {
|
||||
return;
|
||||
}
|
||||
|
||||
auto update = td_api::make_object<td_api::updateNewCallSignalingData>();
|
||||
update->call_id_ = local_call_id_.get();
|
||||
update->data_ = std::move(data);
|
||||
send_closure(G()->td(), &Td::send_update, std::move(update));
|
||||
}
|
||||
|
||||
void CallActor::discard_call(bool is_disconnected, int32 duration, bool is_video, int64 connection_id,
|
||||
|
Loading…
Reference in New Issue
Block a user