saveUnsentMessage method

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

Implementation

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