Improve log message.

This commit is contained in:
levlam 2022-05-12 15:18:07 +03:00
parent c0eb211476
commit 6f8b513597

View File

@ -4116,9 +4116,13 @@ void GroupCallManager::on_group_call_left_impl(GroupCall *group_call, bool need_
auto input_group_call_id = get_input_group_call_id(group_call->group_call_id).ok(); auto input_group_call_id = get_input_group_call_id(group_call->group_call_id).ok();
try_clear_group_call_participants(input_group_call_id); try_clear_group_call_participants(input_group_call_id);
if (!group_call->need_rejoin) { if (!group_call->need_rejoin) {
if (is_group_call_being_joined(input_group_call_id)) {
LOG(ERROR) << "Left a being joined group call. Did you change audio_source_id without leaving the group call?";
} else {
process_group_call_after_join_requests(input_group_call_id, "on_group_call_left_impl"); process_group_call_after_join_requests(input_group_call_id, "on_group_call_left_impl");
} }
} }
}
void GroupCallManager::discard_group_call(GroupCallId group_call_id, Promise<Unit> &&promise) { void GroupCallManager::discard_group_call(GroupCallId group_call_id, Promise<Unit> &&promise) {
TRY_RESULT_PROMISE(promise, input_group_call_id, get_input_group_call_id(group_call_id)); TRY_RESULT_PROMISE(promise, input_group_call_id, get_input_group_call_id(group_call_id));