feat: enforced temporary chat

This commit is contained in:
Timothy Jaeryang Baek
2025-03-31 17:58:43 -07:00
parent 580965df17
commit 5f792d2771
6 changed files with 34 additions and 3 deletions

View File

@@ -199,6 +199,12 @@
temporaryChatEnabled.set(true);
}
console.log($user.permissions);
if ($user?.permissions?.chat?.temporary_enforced) {
temporaryChatEnabled.set(true);
}
// Check for version updates
if ($user.role === 'admin') {
// Check if the user has dismissed the update toast in the last 24 hours