markAsRead method
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;
}
}