getMessageStatusOfASingleChatMessage method

  1. @override
Future<String> getMessageStatusOfASingleChatMessage(
  1. String messageID
)
override

This method is used to get the message status of a single chat message.

Implementation

@override
Future<String> getMessageStatusOfASingleChatMessage(String messageID) async {
  //getMessageInfo
  String messageInfoResponse;
  try {
    messageInfoResponse = await mirrorFlyMethodChannel.invokeMethod(
        'getMessageStatusOfASingleChatMessage', {"messageID": messageID});
    LogMessage.d("Message Info Response ", " $messageInfoResponse");
    return convertChatMessageStatusDetailToJson(messageInfoResponse);
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}