Skip to content

Commit

Permalink
fix(electron): fix rtc avatar init without setting active (#1583)
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx authored Jun 23, 2022
1 parent 8cf4c43 commit 797186b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,11 @@ export class FlatRTCAgoraElectron extends FlatRTC<
return;
}
let avatar = this._remoteAvatars.get(uid);
if (avatar) {
avatar.setActive(true);
} else {
if (!avatar) {
avatar = new RTCRemoteAvatar({ rtc: this, uid });
this._remoteAvatars.set(uid, avatar);
}
avatar.setActive(true);
};

this.rtcEngine.on("userJoined", handler);
Expand Down

0 comments on commit 797186b

Please sign in to comment.