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
+12 -4
View File
@@ -1,9 +1,17 @@
<script lang="ts">
import {roomsById, makeRoomId} from "@app/core/state"
import {deriveRoom} from "@app/core/state"
const {url, h} = $props()
type Props = {
url: string
h: string
class?: string
}
const {url, h, ...props}: Props = $props()
const room = deriveRoom(url, h)
</script>
<span class="ellipsize">
{$roomsById.get(makeRoomId(url, h))?.name || h}
<span class="ellipsize {props.class}">
{$room?.name || h}
</span>