Skip to content

Commit

Permalink
change attributes to UnmodifiableMapView.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Jul 16, 2024
1 parent 53f5479 commit 75abd81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/participant/participant.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ abstract class Participant<T extends TrackPublication>
ParticipantPermissions get permissions => _permissions;

/// Attributes associated with the participant
Map<String, String> get attributes => _attributes;
UnmodifiableMapView<String, String> get attributes =>
UnmodifiableMapView(_attributes);
Map<String, String> _attributes = {};

/// when the participant joined the room
Expand Down

0 comments on commit 75abd81

Please sign in to comment.