Add two new call problems.
GitOrigin-RevId: 036e7b52be8daa114fa919f560410b5edb09b461
This commit is contained in:
parent
fcd1cda312
commit
552a0550c2
@ -1989,6 +1989,12 @@ callProblemSilentRemote = CallProblem;
|
|||||||
//@description The call ended unexpectedly
|
//@description The call ended unexpectedly
|
||||||
callProblemDropped = CallProblem;
|
callProblemDropped = CallProblem;
|
||||||
|
|
||||||
|
//@description The video was distorted
|
||||||
|
callProblemDistortedVideo = CallProblem;
|
||||||
|
|
||||||
|
//@description The video was pixelated
|
||||||
|
callProblemPixelatedVideo = CallProblem;
|
||||||
|
|
||||||
|
|
||||||
//@description Describes a call @id Call identifier, not persistent @user_id Peer user identifier @is_outgoing True, if the call is outgoing @is_video True, if the call is a video call @state Call state
|
//@description Describes a call @id Call identifier, not persistent @user_id Peer user identifier @is_outgoing True, if the call is outgoing @is_video True, if the call is a video call @state Call state
|
||||||
call id:int32 user_id:int32 is_outgoing:Bool is_video:Bool state:CallState = Call;
|
call id:int32 user_id:int32 is_outgoing:Bool is_video:Bool state:CallState = Call;
|
||||||
|
Binary file not shown.
@ -277,6 +277,10 @@ void CallActor::rate_call(int32 rating, string comment, vector<td_api::object_pt
|
|||||||
return "silent_remote";
|
return "silent_remote";
|
||||||
case td_api::callProblemDropped::ID:
|
case td_api::callProblemDropped::ID:
|
||||||
return "dropped";
|
return "dropped";
|
||||||
|
case td_api::callProblemDistortedVideo::ID:
|
||||||
|
return "distorted_video";
|
||||||
|
case td_api::callProblemPixelatedVideo::ID:
|
||||||
|
return "pixelated_video";
|
||||||
default:
|
default:
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
return "";
|
return "";
|
||||||
|
@ -2768,9 +2768,11 @@ class CliClient final : public Actor {
|
|||||||
vector<td_api::object_ptr<td_api::CallProblem>> problems;
|
vector<td_api::object_ptr<td_api::CallProblem>> problems;
|
||||||
problems.emplace_back(td_api::make_object<td_api::callProblemNoise>());
|
problems.emplace_back(td_api::make_object<td_api::callProblemNoise>());
|
||||||
problems.emplace_back(td_api::make_object<td_api::callProblemNoise>());
|
problems.emplace_back(td_api::make_object<td_api::callProblemNoise>());
|
||||||
|
problems.emplace_back(td_api::make_object<td_api::callProblemDistortedVideo>());
|
||||||
problems.emplace_back(nullptr);
|
problems.emplace_back(nullptr);
|
||||||
problems.emplace_back(td_api::make_object<td_api::callProblemNoise>());
|
problems.emplace_back(td_api::make_object<td_api::callProblemNoise>());
|
||||||
problems.emplace_back(td_api::make_object<td_api::callProblemEcho>());
|
problems.emplace_back(td_api::make_object<td_api::callProblemEcho>());
|
||||||
|
problems.emplace_back(td_api::make_object<td_api::callProblemPixelatedVideo>());
|
||||||
problems.emplace_back(td_api::make_object<td_api::callProblemDistortedSpeech>());
|
problems.emplace_back(td_api::make_object<td_api::callProblemDistortedSpeech>());
|
||||||
send_request(td_api::make_object<td_api::sendCallRating>(
|
send_request(td_api::make_object<td_api::sendCallRating>(
|
||||||
as_call_id(call_id), to_integer<int32>(rating), "Wow, such good call! (TDLib test)", std::move(problems)));
|
as_call_id(call_id), to_integer<int32>(rating), "Wow, such good call! (TDLib test)", std::move(problems)));
|
||||||
|
Loading…
Reference in New Issue
Block a user