toggleMute method

Future<void> toggleMute(
  1. bool enabled
)

Toggles the MyUser.muted status.

Implementation

Future<void> toggleMute(bool enabled) async {
  try {
    await _myUserService.toggleMute(enabled ? null : MuteDuration.forever());
  } catch (e) {
    MessagePopup.error(e);
    rethrow;
  }
}