From 6c73eae9f6119dff90901594efaaab0be2e9c7ee Mon Sep 17 00:00:00 2001 From: josc146 Date: Fri, 27 Oct 2023 13:11:12 +0800 Subject: [PATCH] edited chat message now is marked as Normal --- frontend/src/pages/Chat.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/pages/Chat.tsx b/frontend/src/pages/Chat.tsx index 838124d..69398b2 100644 --- a/frontend/src/pages/Chat.tsx +++ b/frontend/src/pages/Chat.tsx @@ -164,6 +164,10 @@ const ChatMessageItem: FC<{ value={messageItem.content} onChange={(e) => { messageItem.content = e.target.value; + commonStore.conversation[uuid].type = MessageType.Normal; + commonStore.conversation[uuid].done = true; + commonStore.setConversation(commonStore.conversation); + commonStore.setConversationOrder([...commonStore.conversationOrder]); }} onBlur={() => { setEditingInner(false);