refac/fix: temp chat

This commit is contained in:
Timothy Jaeryang Baek committed 2025-10-01 22:49:25 -05:00
1 parent af34e414e1
commit 3a601e0fc3
6 files changed
+145 -114

No files matched your search

+1 -1
View File
@@ -232,7 +232,7 @@
if (chat.id) {
let chatObj = null;
if (chat.id === 'local' || $temporaryChatEnabled) {
if ((chat?.id ?? '').startsWith('local') || $temporaryChatEnabled) {
chatObj = chat;
} else {
chatObj = await getChatById(localStorage.token, chat.id);