forked from XiaoMo/ChatGPT-Next-Web
fix: #2566 click avatar to edit context messages
This commit is contained in:
parent
ffddb7fb2b
commit
840277f584
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user