Forráskód Böngészése

fix: #2566 click avatar to edit context messages

Yidadaa 1 éve
szülő
commit
840277f584
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      app/components/chat.tsx

+ 3 - 3
app/components/chat.tsx

@@ -1123,9 +1123,9 @@ function _Chat() {
                               10,
                             );
                             chatStore.updateCurrentSession((session) => {
-                              const m = session.messages.find(
-                                (m) => m.id === message.id,
-                              );
+                              const m = session.mask.context
+                                .concat(session.messages)
+                                .find((m) => m.id === message.id);
                               if (m) {
                                 m.content = newMessage;
                               }