Add two new call problems.

GitOrigin-RevId: 036e7b52be8daa114fa919f560410b5edb09b461
This commit is contained in:
levlam 2020-08-21 20:53:39 +03:00
parent fcd1cda312
commit 552a0550c2
4 changed files with 12 additions and 0 deletions

View File

@ -1989,6 +1989,12 @@ callProblemSilentRemote = CallProblem;
//@description The call ended unexpectedly
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
call id:int32 user_id:int32 is_outgoing:Bool is_video:Bool state:CallState = Call;

Binary file not shown.

View File

@ -277,6 +277,10 @@ void CallActor::rate_call(int32 rating, string comment, vector<td_api::object_pt
return "silent_remote";
case td_api::callProblemDropped::ID:
return "dropped";
case td_api::callProblemDistortedVideo::ID:
return "distorted_video";
case td_api::callProblemPixelatedVideo::ID:
return "pixelated_video";
default:
UNREACHABLE();
return "";

View File

@ -2768,9 +2768,11 @@ class CliClient final : public Actor {
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::callProblemDistortedVideo>());
problems.emplace_back(nullptr);
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::callProblemPixelatedVideo>());
problems.emplace_back(td_api::make_object<td_api::callProblemDistortedSpeech>());
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)));