setParticipantAudioEnabled method

  1. @override
void setParticipantAudioEnabled({
  1. required String targetId,
  2. required bool isEnabled,
})
override

Implementation

@override
void setParticipantAudioEnabled({
  required String targetId,
  required bool isEnabled,
}) {
  if (_remoteSubscribers[targetId]?.isAudioEnabled == isEnabled) return;

  _remoteSubscribers[targetId] =
      _remoteSubscribers[targetId]!.copyWith(isAudioEnabled: isEnabled);

  _notify(CallbackEvents.shouldBeUpdateState);
}