aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/routes/(app)/dm/[recipient]/+page.svelte4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/routes/(app)/dm/[recipient]/+page.svelte b/src/routes/(app)/dm/[recipient]/+page.svelte
index 971c0cd5..d450849a 100644
--- a/src/routes/(app)/dm/[recipient]/+page.svelte
+++ b/src/routes/(app)/dm/[recipient]/+page.svelte
@@ -64,7 +64,9 @@
<p>Received Messages:</p>
<ul>
{#each events as evt}
- <li>{new Date(evt.created_at * 1000)}: &quot;{evt.content}&quot;</li>
+ {#if evt.pubkey === recipient.pubkey || evt.pubkey === user.pubkey}
+ <li>{new Date(evt.created_at * 1000)}: &quot;{evt.content}&quot;</li>
+ {/if}
{/each}
</ul>