markAllConversationsAsRead method
把所有的会话都设成已读。
这里针对的是本地会话。
Throws 如果有异常会在这里抛出,包含错误码和错误描述,详见 ChatError。
Implementation
Future<void> markAllConversationsAsRead() async {
Map result =
await ChatChannel.invokeMethod(ChatMethodKeys.markAllChatMsgAsRead);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}