From 653224387d8c09e461aabe632dbad6d59caf8f05 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 5 Mar 2026 22:10:50 -0800 Subject: Add MLS messaging with marmot-ts, NIP-17 fallback Integrate MLS (Messaging Layer Security) via marmot-ts for encrypted group messaging. Falls back to NIP-17 when the recipient doesn't have an MLS key package. Includes optimistic UI for sent messages, local caching of decrypted rumours, dynamic group subscriptions, and self-echo filtering. Fix SSR crash in nostr settings page. Co-Authored-By: Claude Opus 4.6 --- src/routes/(app)/settings/nostr/+page.svelte | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/routes/(app)/settings') diff --git a/src/routes/(app)/settings/nostr/+page.svelte b/src/routes/(app)/settings/nostr/+page.svelte index 3a27bc88..24fda6fb 100644 --- a/src/routes/(app)/settings/nostr/+page.svelte +++ b/src/routes/(app)/settings/nostr/+page.svelte @@ -51,13 +51,16 @@ ($save as any).click(); }; + import { onMount } from "svelte"; import { PUBLIC_DM_RELAYS } from "$env/static/public"; const DM_RELAYS_LIST = PUBLIC_DM_RELAYS.split(","); const pool = new SimplePool(); - (() => getPreferredRelays(data.user.pubkey).then((relays) => { - const relayEntry = document.getElementById("dmRelays") as HTMLTextAreaElement | null; - if (relayEntry) relayEntry.value = relays.join("\n"); - }))(); + onMount(() => { + getPreferredRelays(data.user.pubkey).then((relays) => { + const relayEntry = document.getElementById("dmRelays") as HTMLTextAreaElement | null; + if (relayEntry) relayEntry.value = relays.join("\n"); + }); + }); -- cgit v1.2.3