fix: enforced temp chat issue
This commit is contained in:
1 parent
372836c87c
commit
f123d70cff
3 files changed
+17
-2
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user