markAsReadDeleteUnreadSeparator method

  1. @override
Future markAsReadDeleteUnreadSeparator(
  1. String jid
)
override

Implementation

@override
Future<dynamic> markAsReadDeleteUnreadSeparator(String jid) async {
  //sendReadReceipts
  //Handled Both Functions ChatManager.markAsRead and FlyMessenger.deleteUnreadMessageSeparatorOfAConversation in this same Function
  dynamic readReceiptResponse;
  try {
    readReceiptResponse = await mirrorFlyMethodChannel
        .invokeMethod('markAsReadDeleteUnreadSeparator', {"jid": jid});
    // debugPrint("mediaResponse ==> $readReceiptResponse");
    return readReceiptResponse;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}