From 9407a7fa3553953ba1be980c94569503d4bc3b07 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Sat, 19 Mar 2022 01:58:06 +0100 Subject: [PATCH] Bypass crash --- td/telegram/ContactsManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index f2ad1da27..b8a3b4f83 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -11194,10 +11194,11 @@ void ContactsManager::on_update_user_phone_number(User *u, UserId user_id, strin if (u->phone_number != phone_number) { if (!u->phone_number.empty()) { auto it = resolved_phone_numbers_.find(u->phone_number); - CHECK(it != resolved_phone_numbers_.end()); + if (it != resolved_phone_numbers_.end()) { if (it->second == user_id) { resolved_phone_numbers_.erase(it); } + } } u->phone_number = std::move(phone_number);