Fix wrong check for call_id.

GitOrigin-RevId: d44c4f5c67ddc59d09f741f2d7f2d0d94ee2365a
This commit is contained in:
levlam 2018-10-24 21:33:06 +03:00
parent 3bd2eb547e
commit 94d28ab263
2 changed files with 3 additions and 1 deletions

View File

@ -291,6 +291,7 @@ Status CallActor::do_update_call(telegram_api::phoneCallRequested &call) {
LOG(DEBUG) << "Do update call to Requested";
call_id_ = call.id_;
call_access_hash_ = call.access_hash_;
is_call_id_inited_ = true;
call_admin_id_ = call.admin_id_;
call_participant_id_ = call.participant_id_;
if (call_id_promise_) {
@ -310,7 +311,7 @@ Status CallActor::do_update_call(telegram_api::phoneCallRequested &call) {
}
tl_object_ptr<telegram_api::inputPhoneCall> CallActor::get_input_phone_call() {
CHECK(call_id_ != 0);
CHECK(is_call_id_inited_);
return make_tl_object<telegram_api::inputPhoneCall>(call_id_, call_access_hash_);
}

View File

@ -118,6 +118,7 @@ class CallActor : public NetQueryCallback {
CallId local_call_id_;
int64 call_id_{0};
bool is_call_id_inited_{false};
int64 call_access_hash_{0};
int32 call_admin_id_{0};
int32 call_participant_id_{0};