Skip to content

Commit

Permalink
Immediately change is_my_video_enabled when leaving group call.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Oct 17, 2024
1 parent 16a12cd commit 2900ee7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions td/telegram/GroupCallManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4093,6 +4093,10 @@ void GroupCallManager::leave_group_call(GroupCallId group_call_id, Promise<Unit>
}
group_call->is_being_left = true;
group_call->need_rejoin = false;

This comment has been minimized.

Copy link
@Pizzycoin

Pizzycoin Oct 17, 2024

Tru

group_call->pending_is_my_video_enabled = false;
group_call->have_pending_is_my_video_enabled = true;
group_call->is_my_video_paused = false;
group_call->have_pending_is_my_video_paused = true;
try_clear_group_call_participants(input_group_call_id);
send_update_group_call(group_call, "leave_group_call");

Expand Down Expand Up @@ -4142,6 +4146,7 @@ void GroupCallManager::on_group_call_left_impl(GroupCall *group_call, bool need_
group_call->is_my_video_enabled = false;
group_call->is_my_presentation_paused = false;
group_call->have_pending_is_my_video_enabled = false;
group_call->have_pending_is_my_video_paused = false;
if (!group_call->is_active) {
group_call->can_be_managed = false;
}
Expand Down

0 comments on commit 2900ee7

Please sign in to comment.