mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-09 03:18:18 +00:00
refac
This commit is contained in:
parent
26a0ea4b60
commit
917f2fd1de
2 changed files with 3 additions and 3 deletions
|
|
@ -1368,8 +1368,8 @@
|
|||
socket?.emit('events:chat', { chat_id: joinedChatId, data: { type: 'leave' } });
|
||||
joinedChatId = next;
|
||||
if (next)
|
||||
socket?.emit('events:chat', { chat_id: next, data: { type: 'join' } }, (joined: boolean) => {
|
||||
if (joined && $chatId === next) void refreshChat();
|
||||
socket?.emit('events:chat', { chat_id: next, data: { type: 'join' } }, () => {
|
||||
if ($chatId === next) void refreshChat();
|
||||
});
|
||||
};
|
||||
$: syncChatRoom($socket, $chatId, $temporaryChatEnabled);
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@
|
|||
|
||||
if (chat?.chat?.share_mode === 'continue' && chat.id !== shareId) {
|
||||
await goto(`/c/${chat.id}`, { replaceState: true });
|
||||
return;
|
||||
return true;
|
||||
}
|
||||
|
||||
if (chat) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue