markAsReadDeleteUnreadSeparator method
Future
markAsReadDeleteUnreadSeparator(
- 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});
// 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;
}
}