diff --git a/frontend/src/pages/Chat.tsx b/frontend/src/pages/Chat.tsx index b5c9f1d8..05d66ce4 100644 --- a/frontend/src/pages/Chat.tsx +++ b/frontend/src/pages/Chat.tsx @@ -91,6 +91,7 @@ const MoreUtilsButton: FC<{ uuid: string, setEditing: (editing: boolean) => void onClick={() => { commonStore.conversationOrder.splice(commonStore.conversationOrder.indexOf(uuid), 1); delete commonStore.conversation[uuid]; + commonStore.setAttachment(uuid, null); }} /> ; @@ -157,7 +158,21 @@ const ChatMessageItem: FC<{ )} > {!editing ? - {messageItem.content} : +
+ {messageItem.content} + {uuid in commonStore.attachments && +
+
+ +
+ } +
: