aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-03-07 08:41:23 -0800
committerAdam Soltys <[email protected]>2026-03-07 08:41:23 -0800
commit13b2a17e6f6ed1697c51a6650874313a6da4aa8f (patch)
tree44ba523709d52f17ca79cc501e684b0a67539dfc /src/routes
parenta1400eea7b1bd9b7e66c0a698bfb02dc82eadb48 (diff)
downloadcoinos-ui-13b2a17e6f6ed1697c51a6650874313a6da4aa8f.tar.gz
coinos-ui-13b2a17e6f6ed1697c51a6650874313a6da4aa8f.zip
render decrypted images
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/(app)/messages/[id]/+page.svelte3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routes/(app)/messages/[id]/+page.svelte b/src/routes/(app)/messages/[id]/+page.svelte
index c8ba8051..f9aea4da 100644
--- a/src/routes/(app)/messages/[id]/+page.svelte
+++ b/src/routes/(app)/messages/[id]/+page.svelte
@@ -9,6 +9,7 @@
subscribeToMessages, fetchGroupHistory,
findOrCreateDmGroup,
resolveUser, displayName,
+ decryptMediaUrl,
} from "$lib/messaging";
import type { GroupInfo } from "$lib/messaging";
import { t } from "$lib/translations";
@@ -282,7 +283,7 @@
{#if j === 0}
<div class="sender-name">{senderName(run.pubkey)}</div>
{/if}
- <ChatMessage content={rumour.content} tags={rumour.tags} />
+ <ChatMessage content={rumour.content} tags={rumour.tags} decryptMedia={(tag) => decryptMediaUrl(groupId, tag)} />
<span class="timestamp secondary text-xs">
{TIME.format(new Date(rumour.created_at * 1000))}
</span>