deleteLocalMessageByIds method

Future<void> deleteLocalMessageByIds({
  1. required String conversationId,
  2. required ConversationType type,
  3. required List<String> messageIds,
})

Implementation

Future<void> deleteLocalMessageByIds({
  required String conversationId,
  required ConversationType type,
  required List<String> messageIds,
}) {
  return checkResult(ChatSDKEvent.deleteLocalMessageByIds, () async {
    final conversation = await getConversation(
      conversationId: conversationId,
      type: type,
    );
    return await conversation!.deleteMessageByIds(messageIds);
  });
}