Fix comment display in RoomItem

This commit is contained in:
Jon Staab 2026-08-14 08:50:17 -07:00
parent 50554ec479
commit 8e2284a2fe

View file

@ -47,7 +47,6 @@
const {url, event, replyTo = undefined, showPubkey = false, canEdit, onEdit}: Props = $props()
const path = makeContentPath(url, event.kind, getIdOrAddress(event))
const h = tagValue(tagSpec("h"), event.tags)
const today = formatTimestampAsDate(now())
const profileDisplay = $profiles.display(event.pubkey, [url]).$
@ -63,7 +62,12 @@
: readable([])
const innerEvent = isQuoteOnly ? deriveEvent(qTag![1], [url]) : readable(undefined)
const path = $derived(
$innerEvent && makeContentPath(url, $innerEvent.kind, getIdOrAddress($innerEvent)),
)
const reply = () => replyTo!(event)
const edit = canEdit(event) ? () => onEdit(event) : undefined
const onTap = () => pushModal(RoomItemMenuMobile, {url, event, reply, edit})