removeConversationSilentMode method

Future<void> removeConversationSilentMode(
  1. {required String conversationId,
  2. required EMConversationType type}
)

删除指定会话的离线推送通知设置。

清除后,会话遵循当前登录用户的设置 EMPushManager.setSilentModeForAll

Param conversationId 会话 ID。

Param type 会话类型。

Throws 如果有异常会在此抛出,包括错误码和错误信息,详见 EMError

Implementation

Future<void> removeConversationSilentMode({
  required String conversationId,
  required EMConversationType type,
}) async {
  Map req = {};
  req["conversationId"] = conversationId;
  req["conversationType"] = conversationTypeToInt(type);
  Map result = await PushChannel.invokeMethod(
      ChatMethodKeys.removeConversationSilentMode, req);
  try {
    EMError.hasErrorFromResult(result);
  } on EMError catch (e) {
    throw e;
  }
}