getRecalledMessagesOfAConversation method

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

Retrieves all messages that have been recalled in a conversation.

Implementation

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