client-sdk-js
76b02ecc - Fix callback loop with metadata updates (#871)

Commit
2 years ago
Fix callback loop with metadata updates (#871) When canUpdateOwnMetadata grant is given to the participant, and metadata is updated remotely, it would throw the client into an invite loop in updating metadata with previous and current value. This was really tricky to root cause. The way it happened was: * RoomService.UpdateParticipant is called * Participant.updateInfo called with new metadata * LocalParticipant.setName called with the same name * setName triggers a `sendUpdateLocalMetadata` with previous metadata * LocalParticipant.setMetadata called with new metadata * setMetadata triggers a `sendUpdateLocalMetadata` with new metadata * Participant.updateInfo called with old metadata....
Author
Parents
Loading