fix: Enforce Temporary Chat switches an open new chat to temporary without a reload (#34513)

This commit is contained in:
G30 authored and GitHub committed 2026-11-15 22:48:55 -05:00
1 parent 8b11a2018c
commit 3baeab0ec8
1 file changed
+3
+3
View File
@@ -126,6 +126,9 @@
if (!localStorage.token) return;
try {
user.set(await getSessionUser(localStorage.token));
if ($user?.role !== 'admin' && $user?.permissions?.chat?.temporary_enforced && !$chatId) {
temporaryChatEnabled.set(true);
}
const results = await Promise.allSettled([
getBackendConfig().then((value) => config.set(value)),
setModels(),