Fix CHECK.
This commit is contained in:
parent
3883ffcc75
commit
d04aed1146
@ -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) {
|
void MessagesManager::after_set_typing_query(DialogId dialog_id, int32 generation) {
|
||||||
auto it = set_typing_query_.find(dialog_id);
|
auto it = set_typing_query_.find(dialog_id);
|
||||||
CHECK(it != set_typing_query_.end());
|
if (it != set_typing_query_.end() && (!it->second.is_alive() || it->second.generation() == generation)) {
|
||||||
if (!it->second.is_alive() || it->second.generation() == generation) {
|
|
||||||
set_typing_query_.erase(it);
|
set_typing_query_.erase(it);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user