removeConversationSilentMode method Null safety
- {required String conversationId,
- required ChatConversationType type}
Remove the setting of offline push notification type for the special conversation. After clearing, the session follows the Settings of the current logged-in user ChatPushManager.setSilentModeForAll.
Param conversationId The conversation id.
Param type The conversation type.
Throws A description of the exception. See ChatError.
Implementation
Future<void> removeConversationSilentMode({
required String conversationId,
required ChatConversationType type,
}) async {
Map req = {};
req["conversationId"] = conversationId;
req["conversationType"] = conversationTypeToInt(type);
Map result = await PushChannel.invokeMethod(
ChatMethodKeys.removeConversationSilentMode, req);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}