markAsRead method

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

This method is used to mark the conversation as read.

Implementation

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