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