livekit-client 2.5.4 → 2.5.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -10479,6 +10479,7 @@ var RoomEvent;
10479
10479
  * Participant attributes is an app-specific key value state to be pushed to
10480
10480
  * all users.
10481
10481
  * When a participant's attributes changed, this event will be emitted with the changed attributes and the participant
10482
+ * args: (changedAttributes: [[Record<string, string]], participant: [[Participant]])
10482
10483
  */
10483
10484
  RoomEvent["ParticipantAttributesChanged"] = "participantAttributesChanged";
10484
10485
  /**
@@ -10762,6 +10763,7 @@ var ParticipantEvent;
10762
10763
  * Participant attributes is an app-specific key value state to be pushed to
10763
10764
  * all users.
10764
10765
  * When a participant's attributes changed, this event will be emitted with the changed attributes
10766
+ * args: (changedAttributes: [[Record<string, string]])
10765
10767
  */
10766
10768
  ParticipantEvent["AttributesChanged"] = "attributesChanged";
10767
10769
  /**
@@ -10993,7 +10995,7 @@ function getOSVersion(ua) {
10993
10995
  return ua.includes('mac os') ? getMatch(/\(.+?(\d+_\d+(:?_\d+)?)/, ua, 1).replace(/_/g, '.') : undefined;
10994
10996
  }
10995
10997
 
10996
- var version$1 = "2.5.4";
10998
+ var version$1 = "2.5.5";
10997
10999
 
10998
11000
  const version = version$1;
10999
11001
  const protocolVersion = 15;
@@ -18815,7 +18817,7 @@ class Participant extends eventsExports.EventEmitter {
18815
18817
  * Updates metadata from server
18816
18818
  **/
18817
18819
  _setAttributes(attributes) {
18818
- const diff = diffAttributes(attributes, this.attributes);
18820
+ const diff = diffAttributes(this.attributes, attributes);
18819
18821
  this._attributes = attributes;
18820
18822
  if (Object.keys(diff).length > 0) {
18821
18823
  this.emit(ParticipantEvent.AttributesChanged, diff);