mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-19 12:10:17 +09:00
hotfix for update target session
This commit is contained in:
parent
db060d732a
commit
8deb7a92ee
@ -156,7 +156,7 @@ export function RealtimeChat({
|
||||
await Promise.all([textTask(), audioTask()]);
|
||||
}
|
||||
// update message.content
|
||||
chatStore.updateTargetSession((session) => {
|
||||
chatStore.updateTargetSession(session, (session) => {
|
||||
session.messages = session.messages.concat();
|
||||
});
|
||||
}
|
||||
@ -166,7 +166,7 @@ export function RealtimeChat({
|
||||
botMessage.audio_url = audio_url;
|
||||
// botMessage.date = new Date().toLocaleString();
|
||||
// update text and audio_url
|
||||
chatStore.updateTargetSession((session) => {
|
||||
chatStore.updateTargetSession(session, (session) => {
|
||||
session.messages = session.messages.concat();
|
||||
});
|
||||
});
|
||||
@ -194,7 +194,7 @@ export function RealtimeChat({
|
||||
);
|
||||
uploadImage(blob).then((audio_url) => {
|
||||
userMessage.audio_url = audio_url;
|
||||
chatStore.updateTargetSession((session) => {
|
||||
chatStore.updateTargetSession(session, (session) => {
|
||||
session.messages = session.messages.concat();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user