diff --git a/td/telegram/GroupCallManager.cpp b/td/telegram/GroupCallManager.cpp index 2cb0b371d..0b9981455 100644 --- a/td/telegram/GroupCallManager.cpp +++ b/td/telegram/GroupCallManager.cpp @@ -1648,13 +1648,13 @@ InputGroupCallId GroupCallManager::update_group_call(const tl_object_ptrdialog_id.is_valid()) { - td_->messages_manager_->on_update_dialog_group_call(group_call->dialog_id, true, - group_call->participant_count == 0); - } } } } + if (group_call->is_active && group_call->dialog_id.is_valid()) { + td_->messages_manager_->on_update_dialog_group_call(group_call->dialog_id, true, + group_call->participant_count == 0); + } if (!group_call->is_active && group_call_recent_speakers_.erase(group_call->group_call_id) != 0) { need_update = true; }