mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-06 02:48:04 +00:00
refac
This commit is contained in:
parent
ef67cc3fac
commit
82b5181372
1 changed files with 5 additions and 1 deletions
|
|
@ -1240,7 +1240,11 @@
|
|||
const chatEventHandler = async (event, cb) => {
|
||||
console.log(event);
|
||||
|
||||
if (event.chat_id === $chatId) {
|
||||
// A new chat's title can arrive before its id; the response message already exists.
|
||||
if (
|
||||
event.chat_id === $chatId ||
|
||||
(!$chatId && event?.data?.type === 'chat:title' && history.messages[event.message_id])
|
||||
) {
|
||||
await tick();
|
||||
const type = event?.data?.type ?? null;
|
||||
if (type === 'chat:reload') {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue