isNeedNotify static method

Future<bool> isNeedNotify(
  1. String accId
)

是否打开消息提醒

Implementation

static Future<bool> isNeedNotify(String accId) async {
  final muteMode =
      await NimCore.instance.settingsService.getP2PMessageMuteMode(accId);
  return muteMode.data == NIMP2PMessageMuteMode.p2pMessageMuteModeOff;
}