enh: channels enable/disable option

This commit is contained in:
Timothy Jaeryang Baek
2024-12-22 21:02:14 -07:00
parent 0d29f31846
commit cb3e01de8a
5 changed files with 27 additions and 3 deletions

View File

@@ -18,7 +18,8 @@
currentChatPage,
temporaryChatEnabled,
channels,
socket
socket,
config
} from '$lib/stores';
import { onMount, getContext, tick, onDestroy } from 'svelte';
@@ -628,7 +629,7 @@
</div>
{/if}
{#if ($user.role === 'admin' || $channels.length > 0) && !search}
{#if $config?.features?.enable_channels && ($user.role === 'admin' || $channels.length > 0) && !search}
<Folder
className="px-2 mt-0.5"
name={$i18n.t('Channels')}