From d74f142cddb0dd2a12b5cb1c1250b4b86ca16cec Mon Sep 17 00:00:00 2001 From: Shreyas2004wagh Date: Mon, 20 Apr 2026 16:25:52 +0000 Subject: [PATCH] Fix relay auth privacy toggle (#240) Co-authored-by: Shreyas2004wagh Co-committed-by: Shreyas2004wagh --- src/routes/settings/privacy/+page.svelte | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/routes/settings/privacy/+page.svelte b/src/routes/settings/privacy/+page.svelte index 4b864bb8..a8249b13 100644 --- a/src/routes/settings/privacy/+page.svelte +++ b/src/routes/settings/privacy/+page.svelte @@ -12,8 +12,10 @@ settings = {...$userSettingsValues} } - const onAuthModeChange = (e: any) => { - settings.auth_mode = e.target.checked ? RelayAuthMode.Aggressive : RelayAuthMode.Conservative + const onAuthModeChange = (e: Event) => { + const target = e.currentTarget as HTMLInputElement + + settings.relay_auth = target.checked ? RelayAuthMode.Aggressive : RelayAuthMode.Conservative } const onsubmit = preventDefault(async () => { @@ -40,7 +42,7 @@ type="checkbox" class="toggle toggle-primary" onchange={onAuthModeChange} - checked={settings.auth_mode === RelayAuthMode.Aggressive} /> + checked={settings.relay_auth === RelayAuthMode.Aggressive} /> {/snippet} {#snippet info()}

Controls whether {PLATFORM_NAME} will identify you to relays not in your lists.