fix: enforced temp chat issue

This commit is contained in:
Timothy Jaeryang Baek
2025-06-28 14:01:58 +04:00
parent 372836c87c
commit f123d70cff
3 changed files with 17 additions and 2 deletions
+7 -1
View File
@@ -198,7 +198,13 @@
) {
event.preventDefault();
console.log('temporaryChat');
temporaryChatEnabled.set(!$temporaryChatEnabled);
if ($user?.permissions?.chat?.temporary_enforced) {
temporaryChatEnabled.set(true);
} else {
temporaryChatEnabled.set(!$temporaryChatEnabled);
}
await goto('/');
const newChatButton = document.getElementById('new-chat-button');
setTimeout(() => {