Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit ae73d99

Browse files
JinChengShiJinChengShi
andauthored
Fix self paticipant not update when join muti times. (#550)
Co-authored-by: JinChengShi <[email protected]>
1 parent 5626f53 commit ae73d99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

talk/owt/sdk/conference/conferenceclient.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,9 @@ void ConferenceClient::Join(
412412
const std::lock_guard<std::mutex> lock(conference_info_mutex_);
413413
if (!current_conference_info_.get()) {
414414
current_conference_info_.reset(new ConferenceInfo);
415-
current_conference_info_->self_.reset(
416-
new Participant(participant_id, role, user_id));
417415
}
416+
current_conference_info_->self_.reset(
417+
new Participant(participant_id, role, user_id));
418418
}
419419
auto room_info = info->get_map()["room"];
420420
if (room_info == nullptr ||

0 commit comments

Comments
 (0)