{#if panel.kind === 'members' || (!channel && !user)}

Members

{:else if channel && panel.kind === 'channel'}

{channel.name || 'Root'}

{#if panel.tab === 'info'}
{#if description}
{@html description}
{:else if pendingDescription}

Loading description...

{:else}

This channel has no description.

{/if}

{session.usersIn(channel.id).length} here, {session.subtreeUserCount(channel.id)} including subchannels{channel.maxUsers ? `, limit ${channel.maxUsers}` : ''}{channel.temporary ? ', temporary' : ''}

{#if session.isText(channel.id)} {:else if session.self?.channelId === channel.id} You are in this channel {:else} {/if}
{:else} {#snippet empty()}

Messages sent here go to everyone in #{channel.name || 'Root'}, even if you are not in it.

{/snippet}
{/if} {:else if user}

{isSelf ? 'Your profile' : 'Profile'}

menu.show(e, userMenu(user))}>

{store.displayName(user)}

{session.channel(user.channelId)?.name || 'Root'}

{#if store.displayName(user) !== user.name}

Real name: {user.name}

{/if}

{#if user.selfMute || user.mute}{user.mute ? 'server muted' : 'muted'}{/if} {#if user.selfDeaf || user.deaf}{user.deaf ? 'server deafened' : 'deafened'}{/if} {#if user.prioritySpeaker}priority speaker{/if} {#if user.recording}recording{/if}

{#if session.sharing[user.session]}
{isSelf ? `You are sharing your ${session.sharing[user.session]}` : `Sharing their ${session.sharing[user.session]}`} {#if isSelf} {:else if share.watchOf(user.session)} {:else}{/if}
{/if} {#if isSelf}
{/if}

Description

{#if editing} (draft = h)} />
{:else} {#if comment}
{@html comment}
{:else if pendingComment}

Loading description...

{:else}

{isSelf ? 'You have no description yet.' : 'No description.'}

{/if} {#if isSelf}
{/if} {/if} {#if !isSelf}
{/if}
{/if}