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

Commit 6d7c7a5

Browse files
Merge pull request #744 from SuperViz/fix/3d-participant-update
fix: update the 3D participant when the slot changes
2 parents c29c19c + 4c7aaa2 commit 6d7c7a5

File tree

1 file changed

+3
-2
lines changed
  • src/services/presence-3d-manager

1 file changed

+3
-2
lines changed

src/services/presence-3d-manager/index.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export class Presence3DManager {
3131
if (this.localParticipant) {
3232
if (
3333
this.localParticipant.name !== participant.name ||
34-
this.localParticipant.avatar?.model3DUrl !== participant.avatar?.model3DUrl
34+
this.localParticipant.avatar?.model3DUrl !== participant.avatar?.model3DUrl ||
35+
this.localParticipant.slot !== participant.slot
3536
) {
3637
this.unthrottledUpdatePresence3D({ ...participant });
3738
}
@@ -50,7 +51,7 @@ export class Presence3DManager {
5051
};
5152

5253
private onLocalParticipantJoined = (participant: Participant): void => {
53-
if (!participant.slot) {
54+
if (!participant.slot || participant.slot?.index === null) {
5455
setTimeout(() => {
5556
this.onLocalParticipantJoined(this.localParticipant);
5657
}, 2000);

0 commit comments

Comments
 (0)