deleteLocalMessageById method
Future<void>
deleteLocalMessageById({
- required String conversationId,
- required ConversationType type,
- required String messageId,
Implementation
Future<void> deleteLocalMessageById({
required String conversationId,
required ConversationType type,
required String messageId,
}) {
return checkResult(ChatSDKEvent.deleteLocalMessageById, () async {
final conversation = await getConversation(
conversationId: conversationId,
type: type,
);
return await conversation!.deleteMessage(messageId);
});
}