diff --git a/src/room/Room.ts b/src/room/Room.ts index 77cf22f972..5b1db655f2 100644 --- a/src/room/Room.ts +++ b/src/room/Room.ts @@ -1862,6 +1862,11 @@ class Room extends (EventEmitter as new () => TypedEmitter) if (info) { participant.updateInfo(info); } + // in order to keep backwards compatibility, manually trigger a attributes changed event after creating the participant + if (Object.keys(info.attributes).length > 0) { + participant.emit(ParticipantEvent.AttributesChanged, info.attributes); + } + return participant; }