Remove unnessecary calls to get_dialog.
GitOrigin-RevId: b644dfddc9a8486724ed0fdbfb0ce3117f70ada0
This commit is contained in:
parent
5e8f973ecf
commit
ebe337e671
@ -19923,9 +19923,6 @@ void MessagesManager::on_send_dialog_action_timeout(DialogId dialog_id) {
|
|||||||
|
|
||||||
void MessagesManager::on_active_dialog_action_timeout(DialogId dialog_id) {
|
void MessagesManager::on_active_dialog_action_timeout(DialogId dialog_id) {
|
||||||
LOG(DEBUG) << "Receive active dialog action timeout in " << dialog_id;
|
LOG(DEBUG) << "Receive active dialog action timeout in " << dialog_id;
|
||||||
Dialog *d = get_dialog(dialog_id);
|
|
||||||
CHECK(d != nullptr);
|
|
||||||
|
|
||||||
auto actions_it = active_dialog_actions_.find(dialog_id);
|
auto actions_it = active_dialog_actions_.find(dialog_id);
|
||||||
if (actions_it == active_dialog_actions_.end()) {
|
if (actions_it == active_dialog_actions_.end()) {
|
||||||
return;
|
return;
|
||||||
@ -19950,9 +19947,6 @@ void MessagesManager::on_active_dialog_action_timeout(DialogId dialog_id) {
|
|||||||
|
|
||||||
void MessagesManager::clear_active_dialog_actions(DialogId dialog_id) {
|
void MessagesManager::clear_active_dialog_actions(DialogId dialog_id) {
|
||||||
LOG(DEBUG) << "Clear active dialog actions in " << dialog_id;
|
LOG(DEBUG) << "Clear active dialog actions in " << dialog_id;
|
||||||
Dialog *d = get_dialog(dialog_id);
|
|
||||||
CHECK(d != nullptr);
|
|
||||||
|
|
||||||
auto actions_it = active_dialog_actions_.find(dialog_id);
|
auto actions_it = active_dialog_actions_.find(dialog_id);
|
||||||
while (actions_it != active_dialog_actions_.end()) {
|
while (actions_it != active_dialog_actions_.end()) {
|
||||||
CHECK(!actions_it->second.empty());
|
CHECK(!actions_it->second.empty());
|
||||||
|
Loading…
Reference in New Issue
Block a user