Add logging if receive no expected/receive unexpected query_id.
This commit is contained in:
parent
db61f74b62
commit
4f3eccd17e
@ -109,6 +109,7 @@ class RequestAppWebViewQuery final : public Td::ResultHandler {
|
|||||||
|
|
||||||
auto ptr = result_ptr.move_as_ok();
|
auto ptr = result_ptr.move_as_ok();
|
||||||
LOG(INFO) << "Receive result for RequestAppWebViewQuery: " << to_string(ptr);
|
LOG(INFO) << "Receive result for RequestAppWebViewQuery: " << to_string(ptr);
|
||||||
|
LOG_IF(ERROR, ptr->query_id_ != 0) << "Receive " << to_string(ptr);
|
||||||
promise_.set_value(std::move(ptr->url_));
|
promise_.set_value(std::move(ptr->url_));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -199,6 +200,7 @@ class RequestWebViewQuery final : public Td::ResultHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto ptr = result_ptr.move_as_ok();
|
auto ptr = result_ptr.move_as_ok();
|
||||||
|
LOG_IF(ERROR, (ptr->flags_ & telegram_api::webViewResultUrl::QUERY_ID_MASK) == 0) << "Receive " << to_string(ptr);
|
||||||
td_->attach_menu_manager_->open_web_view(ptr->query_id_, dialog_id_, bot_user_id_, top_thread_message_id_,
|
td_->attach_menu_manager_->open_web_view(ptr->query_id_, dialog_id_, bot_user_id_, top_thread_message_id_,
|
||||||
std::move(input_reply_to_), as_dialog_id_);
|
std::move(input_reply_to_), as_dialog_id_);
|
||||||
promise_.set_value(td_api::make_object<td_api::webAppInfo>(ptr->query_id_, ptr->url_));
|
promise_.set_value(td_api::make_object<td_api::webAppInfo>(ptr->query_id_, ptr->url_));
|
||||||
|
@ -217,6 +217,7 @@ class RequestSimpleWebViewQuery final : public Td::ResultHandler {
|
|||||||
|
|
||||||
auto ptr = result_ptr.move_as_ok();
|
auto ptr = result_ptr.move_as_ok();
|
||||||
LOG(INFO) << "Receive result for RequestSimpleWebViewQuery: " << to_string(ptr);
|
LOG(INFO) << "Receive result for RequestSimpleWebViewQuery: " << to_string(ptr);
|
||||||
|
LOG_IF(ERROR, ptr->query_id_ != 0) << "Receive " << to_string(ptr);
|
||||||
promise_.set_value(std::move(ptr->url_));
|
promise_.set_value(std::move(ptr->url_));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user