deleteRemoteAndLocalConversationsMark method

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

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.

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 {
    ChatError.hasErrorFromResult(result);
  } on ChatError catch (e) {
    throw e;
  }
}