updateRecentChatPinStatus method

  1. @override
dynamic updateRecentChatPinStatus(
  1. String jid,
  2. bool pinStatus
)
override

Implementation

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