Skip to content

Commit

Permalink
fix: ChatGPTNextWeb#2566 click avatar to edit context messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Yidadaa committed Aug 15, 2023
1 parent 350ffe3 commit dce3105
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit dce3105

Please sign in to comment.