From 1f7ae824500d5d2a9467dc8aeb628817f2711c2a Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Wed, 30 Dec 2020 12:39:57 +0100 Subject: [PATCH] Update ContactsManager.cpp --- td/telegram/ContactsManager.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index c17a9b5f4..ffad5e1ec 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -9119,7 +9119,9 @@ void ContactsManager::update_chat_full(ChatFull *chat_full, ChatId chat_id, bool } void ContactsManager::update_channel_full(ChannelFull *channel_full, ChannelId channel_id, bool from_database) { - CHECK(channel_full != nullptr); + if (channel_full == nullptr) { + return; + } unavailable_channel_fulls_.erase(channel_id); // don't needed anymore if (!(channel_full->participant_count >= channel_full->administrator_count)) { @@ -9153,7 +9155,9 @@ void ContactsManager::update_channel_full(ChannelFull *channel_full, ChannelId c { Channel *c = get_channel(channel_id); - CHECK(c == nullptr || c->is_update_supergroup_sent); + if (!(c == nullptr || c->is_update_supergroup_sent)) { + return; + } } send_closure( G()->td(), &Td::send_update,