updateRecentChatPinStatus method

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

This method is used to update the recent chat pin status.

Implementation

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