Ignore empty next_offset in group calls with new participants added to the end of the list.

This commit is contained in:
levlam 2022-05-10 21:48:06 +03:00
parent f972b3ad56
commit 35a0a7c383

View File

@ -1632,7 +1632,11 @@ void GroupCallManager::on_get_group_call_participants(
if (is_load) {
auto *group_call_participants = add_group_call_participants(input_group_call_id);
if (group_call_participants->next_offset == offset) {
group_call_participants->next_offset = std::move(participants->next_offset_);
if (!offset.empty() && participants->next_offset_.empty() && group_call_participants->joined_date_asc) {
LOG(INFO) << "Ignore empty next_offset";
} else {
group_call_participants->next_offset = std::move(participants->next_offset_);
}
}
if (is_empty || is_sync) {