From da1f23a6f99b6cf0e259cb481f966e1062b8d8e3 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 30 Nov 2023 19:37:48 +0300 Subject: [PATCH] Fix RecommendedDialogs::parse. --- td/telegram/ContactsManager.cpp | 2 ++ 1 file changed, 2 insertions(+) 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()); } }