saveUnsentMessage method

  1. @override
dynamic saveUnsentMessage(
  1. String jid,
  2. String message
)
override

This method is used to save the unsent message.

Implementation

@override
saveUnsentMessage(String jid, String message) async {
  try {
    await mirrorFlyMethodChannel.invokeMethod(
        'saveUnsentMessage', {"jid": jid, "texMessage": message});
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}