sendLocalMuteToggle method

Future<void> sendLocalMuteToggle()

Implementation

Future<void> sendLocalMuteToggle() async {
  if (!_attendees.attendees.containsKey(_attendees.localId)) return;
  try {
    if (_attendees.attendees[_attendees.localId]!.muteStatus) {
      await AmazonChime.instance.unmute();
    } else {
      await AmazonChime.instance.mute();
    }
  } catch (e) {
    logger.e('Mute toggle failed: $e');
    rethrow;
  }
}