deleteRemoteAndLocalConversationsMark method

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

取消标记会话。

本地和服务端取消标记会话。

Param conversationIds 要取消标记的会话 ID 列表。 Param mark 要移除的会话标记,详见 ConversationMarkType

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;
  }
}