diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index 1e198294..2fce20d1 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -10606,7 +10606,7 @@ void ContactsManager::on_update_chat_delete_user(ChatId chat_id, UserId user_id, update_chat_online_member_count(chat_full, chat_id, false); update_chat_full(chat_full, chat_id); - if (static_cast(chat_full->participants.size()) != c->participant_count) { + if (static_cast(chat_full->participants.size()) != c->participant_count) { repair_chat_participants(chat_id); } return; diff --git a/td/telegram/StickersManager.cpp b/td/telegram/StickersManager.cpp index 4f188a33..e20ed895 100644 --- a/td/telegram/StickersManager.cpp +++ b/td/telegram/StickersManager.cpp @@ -2095,10 +2095,10 @@ StickerSetId StickersManager::on_get_messages_sticker_set(StickerSetId sticker_s document_id_to_sticker_id.insert(sticker_id); } } - if (static_cast(s->sticker_ids.size()) != s->sticker_count) { + if (static_cast(s->sticker_ids.size()) != s->sticker_count) { LOG(ERROR) << "Wrong sticker set size " << s->sticker_count << " instead of " << s->sticker_ids.size() << " specified in " << set_id << " from " << source; - s->sticker_count = static_cast(s->sticker_ids.size()); + s->sticker_count = static_cast(s->sticker_ids.size()); } if (!is_bot) {