Privacy settings relay auth toggle writes to the wrong field #239
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The "Authenticate with unknown relays?" toggle in Privacy Settings appears to be wired to
auth_mode, but the actual persisted settings field isrelay_auth.As a result, changing this toggle does not update the real relay auth setting, and saving can write an extra unused field into the settings payload.
Steps to reproduce
Actual behavior
settings.auth_moderelay_authrelay_authvalue is not updated by this toggleauth_modefield can be persisted alongside the real settings dataExpected behavior
relay_authLikely cause
In
src/routes/settings/privacy/+page.svelte, the toggle handler and checked state usesettings.auth_mode, while the canonical settings type insrc/app/core/state.tsdefines the field asrelay_auth.Affected files
src/routes/settings/privacy/+page.sveltesrc/app/core/state.tsNotes
This looks like a small, self-contained bug and should be straightforward to fix.
Closing this as a duplicate of #237.