removeConversationSilentMode method
- required String conversationId,
- required ChatConversationType type,
Removes the offline push notification settings for a conversation.
After the setting is deleted, the conversation follows the setting of ChatPushManager.setSilentModeForAll of the current logged-in user.
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 {
try {
Map req = {};
req["convId"] = conversationId;
req["conversationType"] = type.index;
Map result = await platform_interface.Client.instance.pushManager
.callNativeMethod(ChatMethodKeys.removeConversationSilentMode, req);
ChatError.hasErrorFromResult(result);
} catch (e) {
rethrow;
}
}