forked from coracle/flotilla
Add room deletion
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
let instance: any | undefined
|
||||
|
||||
onMount(() => {
|
||||
modal.subscribe($modal => {
|
||||
return modal.subscribe($modal => {
|
||||
if (instance) {
|
||||
unmount(instance, {outro: true})
|
||||
instance = undefined
|
||||
|
||||
Reference in New Issue
Block a user