Handle conversations with no room

This commit is contained in:
Jon Staab
2025-06-27 09:44:01 -07:00
parent fd42a0e8d4
commit f2249fe592
2 changed files with 8 additions and 6 deletions
+7 -3
View File
@@ -11,7 +11,7 @@
type Props = {
url: string
room: string
room?: string
events: TrustedEvent[]
latest: TrustedEvent
earliest: TrustedEvent
@@ -27,8 +27,12 @@
<ProfileCircle pubkey={earliest.pubkey} size={10} />
<div class="min-w-0 flex-1">
<div class="flex items-center gap-2 text-sm opacity-70">
<span class="font-medium text-blue-400">#{displayChannel(url, room)}</span>
<span class="opacity-50"></span>
{#if room}
<span class="font-medium text-blue-400">
#{displayChannel(url, room)}
</span>
<span class="opacity-50"></span>
{/if}
<span>{formatTimestamp(earliest.created_at)}</span>
</div>
<Content minimalQuote minLength={100} maxLength={400} event={earliest} />