diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index 7983cf90d..fb6a6f35b 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -5597,6 +5597,8 @@ void ContactsManager::RecommendedDialogs::parse(ParserT &parser) { parse_time(next_reload_time_, parser); if (has_total_count) { td::parse(total_count_, parser); + } else { + total_count_ = static_cast(dialog_ids_.size()); } }