getMessagesUsingIds method

  1. @override
Future<String> getMessagesUsingIds(
  1. List<String> messageIds
)
override

This method is used to get the messages using the message ID's.

Implementation

@override
Future<String> getMessagesUsingIds(List<String> messageIds) async {
  String? messageListResponse;
  try {
    messageListResponse = await mirrorFlyMethodChannel
        .invokeMethod('getMessagesUsingIds', {"MessageIds": messageIds});
    return convertChatMessagesJsonFromString(messageListResponse);
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}