isMuted method

  1. @override
Future<bool?> isMuted(
  1. String jid
)
override

This method is used to get the user is muted or not.

Implementation

@override
Future<bool?> isMuted(String jid) async {
  bool? res;
  try {
    res = await mirrorFlyMethodChannel
        .invokeMethod<bool>('isMuted', {"jid": jid});
    return res;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}