setNotify static method

Future<NIMResult<void>> setNotify(
  1. String accId,
  2. bool notify
)

设置账号的消息提醒状态

Implementation

static Future<NIMResult<void>> setNotify(String accId, bool notify) {
  return NimCore.instance.settingsService.setP2PMessageMuteMode(
      accId,
      notify
          ? NIMP2PMessageMuteMode.p2pMessageMuteModeOff
          : NIMP2PMessageMuteMode.p2pMessageMuteModeOn);
}