feat: Delete message by id #2088 (#2155)

### What problem does this PR solve?

feat: Delete message by id #2088

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-08-29 14:32:04 +08:00
committed by GitHub
parent f87e7242cd
commit f8a479bf88
7 changed files with 84 additions and 9 deletions

View File

@ -27,6 +27,7 @@ const ChatContainer = () => {
addNewestAnswer,
conversationId,
loading,
removeMessageById,
} = useFetchConversationOnMount();
const {
handleInputChange,
@ -69,6 +70,7 @@ const ChatContainer = () => {
reference={buildMessageItemReference(conversation, message)}
clickDocumentButton={clickDocumentButton}
index={i}
removeMessageById={removeMessageById}
></MessageItem>
);
})}