Add indicator for who sent the most recent message in a converssation

This commit is contained in:
Jon Staab
2025-08-25 16:24:24 -07:00
parent e4fe18df2f
commit 9da3141650
2 changed files with 6 additions and 1 deletions

View File

@@ -170,7 +170,7 @@
id, id,
type: "note", type: "note",
value: event, value: event,
showPubkey: created_at - previousCreatedAt > int(15, MINUTE) || previousPubkey !== pubkey, showPubkey: created_at - previousCreatedAt > int(2, MINUTE) || previousPubkey !== pubkey,
}) })
previousDate = date previousDate = date

View File

@@ -59,6 +59,11 @@
{/if} {/if}
</div> </div>
<p class="overflow-hidden text-ellipsis whitespace-nowrap text-sm"> <p class="overflow-hidden text-ellipsis whitespace-nowrap text-sm">
<span class="opacity-50">
{#if props.messages[0].pubkey === $pubkey}
You:
{/if}
</span>
{props.messages[0].content} {props.messages[0].content}
</p> </p>
</div> </div>