From d04aed1146f7dd2eac9255077c5aa0d26c706aaf Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 19 Sep 2021 20:20:58 +0300 Subject: [PATCH] Fix CHECK. --- td/telegram/MessagesManager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index a3518bc6c..8071fde9c 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -30834,8 +30834,7 @@ void MessagesManager::send_dialog_action(DialogId dialog_id, MessageId top_threa void MessagesManager::after_set_typing_query(DialogId dialog_id, int32 generation) { auto it = set_typing_query_.find(dialog_id); - CHECK(it != set_typing_query_.end()); - if (!it->second.is_alive() || it->second.generation() == generation) { + if (it != set_typing_query_.end() && (!it->second.is_alive() || it->second.generation() == generation)) { set_typing_query_.erase(it); } }