markAsReadDeleteUnreadSeparator method

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

This method is used to delete the unread message separator.

Implementation

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