Fix RecommendedDialogs::parse.

This commit is contained in:
levlam 2023-11-30 19:37:48 +03:00
parent 392f5e24b3
commit da1f23a6f9

View File

@ -5597,6 +5597,8 @@ void ContactsManager::RecommendedDialogs::parse(ParserT &parser) {
parse_time(next_reload_time_, parser); parse_time(next_reload_time_, parser);
if (has_total_count) { if (has_total_count) {
td::parse(total_count_, parser); td::parse(total_count_, parser);
} else {
total_count_ = static_cast<int32>(dialog_ids_.size());
} }
} }