deleteRemoteAndLocalConversationsMark method

Future<void> deleteRemoteAndLocalConversationsMark({
  1. required List<String> conversationIds,
  2. required ConversationMarkType mark,
})

~english This method unmarks conversations both locally and on the server. Param conversationIds The list of conversation IDs to unmark. Param mark The mark type. See ConversationMarkType. ~end

~chinese 本地和服务端取消标记会话。 Param conversationIds 要取消标记的会话 ID 列表。 Param mark 标记类型,详见 ConversationMarkType。 ~end

Implementation

Future<void> deleteRemoteAndLocalConversationsMark({
  required List<String> conversationIds,
  required ConversationMarkType mark,
}) async {
  Map map = {
    'convIds': conversationIds,
    'mark': mark.index,
  };

  Map result = await ChatChannel.invokeMethod(
    ChatMethodKeys.deleteRemoteAndLocalConversationsMark,
    map,
  );
  try {
    EMError.hasErrorFromResult(result);
  } on EMError catch (e) {
    throw e;
  }
}