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
+6 -1
View File
@@ -491,7 +491,12 @@
on:click={async () => {
selectedChatId = null;
await temporaryChatEnabled.set(false);
if ($user?.permissions?.chat?.temporary_enforced) {
await temporaryChatEnabled.set(true);
} else {
await temporaryChatEnabled.set(false);
}
setTimeout(() => {
if ($mobile) {
showSidebar.set(false);