Do not send GetDialogQuery while closing.

GitOrigin-RevId: c6517f13a881dc4a6bb31072ec0320e17823ef0e
This commit is contained in:
levlam 2019-04-08 01:06:58 +03:00
parent 2ca1bf12f9
commit 99a27126e5

View File

@ -20644,6 +20644,10 @@ void MessagesManager::send_get_dialog_query(DialogId dialog_id, Promise<Unit> &&
auto result = get_dialog_query_logevent_id_.emplace(dialog_id, logevent_id);
CHECK(result.second);
}
if (G()->close_flag()) {
// request will be sent after restart
return;
}
LOG(INFO) << "Send get " << dialog_id << " query";
td_->create_handler<GetDialogQuery>()->send(dialog_id);