Add room deletion

This commit is contained in:
Jon Staab
2025-10-24 13:36:59 -07:00
parent 0e94a9c33f
commit 0b98197a86
7 changed files with 173 additions and 110 deletions
+6 -1
View File
@@ -26,7 +26,12 @@
{replaceState}
notification={notify ? $notifications.has(path) : false}>
{#if $channel?.picture}
<Icon icon={$channel.picture} />
{@const src = $channel.picture}
{#if src.match("\.(png|svg)$") || src.match("image/(png|svg)")}
<Icon icon={src} />
{:else}
<img alt="Room icon" {src} class="h-6 w-6 rounded-lg" />
{/if}
{:else if $channel?.closed || $channel?.private}
<Icon icon={Lock} />
{:else}
+1 -1
View File
@@ -14,7 +14,7 @@
let instance: any | undefined
onMount(() => {
modal.subscribe($modal => {
return modal.subscribe($modal => {
if (instance) {
unmount(instance, {outro: true})
instance = undefined