deleteLocalThreadMessageById method

Future<void> deleteLocalThreadMessageById({
  1. required String threadId,
  2. required String messageId,
})

Implementation

Future<void> deleteLocalThreadMessageById({
  required String threadId,
  required String messageId,
}) {
  return checkResult(ChatSDKEvent.deleteLocalThreadMessageById, () async {
    final conversation = await getThreadConversation(
      conversationId: threadId,
    );
    return await conversation!.deleteMessage(messageId);
  });
}