diff options
| author | Adam Soltys <[email protected]> | 2026-03-05 22:10:50 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-05 22:32:43 -0800 |
| commit | 653224387d8c09e461aabe632dbad6d59caf8f05 (patch) | |
| tree | 4bc940709f10550a86fe172579b21c0ab4a2c240 /src/routes/(app)/settings | |
| parent | 796119569ae96ff0afd5cc4d5472175e271e9c8d (diff) | |
| download | coinos-ui-653224387d8c09e461aabe632dbad6d59caf8f05.tar.gz coinos-ui-653224387d8c09e461aabe632dbad6d59caf8f05.zip | |
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 <[email protected]>
Diffstat (limited to 'src/routes/(app)/settings')
| -rw-r--r-- | src/routes/(app)/settings/nostr/+page.svelte | 11 |
1 files changed, 7 insertions, 4 deletions
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"); + }); + }); </script> <input type="hidden" name="challenge" value={challenge} /> |
