Add room detail, assume admins are members

This commit is contained in:
Jon Staab
2025-11-10 14:59:15 -08:00
parent 5248275d73
commit 761e369313
8 changed files with 254 additions and 110 deletions
+6 -5
View File
@@ -5,17 +5,18 @@
import {deriveRoom} from "@app/core/state"
interface Props {
h: any
url: any
h: string
url: string
size?: number
}
const {url, h}: Props = $props()
const {url, h, size = 5}: Props = $props()
const room = deriveRoom(url, h)
</script>
{#if $room.picture}
<ImageIcon src={$room.picture} alt="Room icon" />
<ImageIcon src={$room.picture} {size} alt="Room icon" />
{:else}
<Icon icon={Hashtag} />
<Icon icon={Hashtag} {size} />
{/if}