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

Commit

Permalink
fix: early return when updating presence 3D participants if no id is …
Browse files Browse the repository at this point in the history
…provided
  • Loading branch information
Raspincel committed Dec 22, 2023
1 parent 801073b commit e32f472
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/realtime/ably/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1464,6 +1464,8 @@ export default class AblyRealtimeService extends RealtimeService implements Ably
};

public updatePresence3D = throttle((data: ParticipantInfo): void => {
if (!data || !data.id) return;

const participant = Object.assign({}, this.participantsOn3d[data.id]?.data ?? {}, data);

this.participantsOn3d[data.id] = {
Expand Down

0 comments on commit e32f472

Please sign in to comment.