refac
This commit is contained in:
1 parent
f867825bf3
commit
71c4da8c06
8 files changed
+65
-40
No files matched your search
@@ -54,6 +54,7 @@
|
||||
import { getSessionUser, updateUserTimezone, userSignOut } from '$lib/apis/auths';
|
||||
import { getAllTags } from '$lib/apis/chats';
|
||||
import { chatCompletion } from '$lib/apis/openai';
|
||||
import { isTemporaryChatId } from '$lib/utils/chatId';
|
||||
import {
|
||||
addOpenAIConnection,
|
||||
removeOpenAIConnection,
|
||||
@@ -497,7 +498,7 @@
|
||||
// Skip events from temporary chats that are not the current chat.
|
||||
// This prevents notifications from being sent to other tabs/devices
|
||||
// for privacy, since temporary chats are not meant to be persisted or visible elsewhere.
|
||||
const isTemporaryChat = event.chat_id?.startsWith('local:');
|
||||
const isTemporaryChat = isTemporaryChatId(event.chat_id);
|
||||
if (isTemporaryChat && event.chat_id !== $chatId) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user