setPermissions method

  1. @internal
  2. @override
ParticipantPermissions? setPermissions(
  1. ParticipantPermissions newValue
)
override

Implementation

@internal
@override
ParticipantPermissions? setPermissions(ParticipantPermissions newValue) {
  final oldValue = super.setPermissions(newValue);
  if (oldValue != null) {
    // notify
    [events, room.events].emit(ParticipantPermissionsUpdatedEvent(
      participant: this,
      permissions: newValue,
      oldPermissions: oldValue,
    ));
  }
  return oldValue;
}