addRemoteAndLocalConversationsMark method
- required List<
String> conversationIds, - required ConversationMarkType mark,
This method marks conversations both locally and on the server.
Param conversationIds
The list of conversation IDs to mark.
Param mark
The mark type. See ConversationMarkType.
Throws A description of the exception. See ChatError.
Implementation
Future<void> addRemoteAndLocalConversationsMark({
required List<String> conversationIds,
required ConversationMarkType mark,
}) async {
Map map = {
'convIds': conversationIds,
'mark': mark.index,
};
Map result = await ChatChannel.invokeMethod(
ChatMethodKeys.addRemoteAndLocalConversationsMark,
map,
);
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}