fetchSilentModeForAll method Null safety
Gets the DND normal settings of the current login user.
Return The normal silent mode.
Throws A description of the exception. See ChatError.
Implementation
Future<ChatSilentModeResult> fetchSilentModeForAll() async {
Map result =
await PushChannel.invokeMethod(ChatMethodKeys.fetchSilentModeForAll);
try {
ChatError.hasErrorFromResult(result);
return ChatSilentModeResult.fromJson(
result[ChatMethodKeys.fetchSilentModeForAll],
);
} on ChatError catch (e) {
throw e;
}
}