test+web: fix test suite and remove redundant privacy checkbox
All checks were successful
CI / test (push) Successful in 25s

This commit is contained in:
2026-03-08 12:16:21 +03:00
parent 79baadb522
commit fc7a9cc3a6
4 changed files with 7 additions and 19 deletions

View File

@@ -357,23 +357,6 @@ export function SettingsPanel({ open, onClose }: Props) {
{savingPrivacy ? "Saving..." : "Save privacy settings"}
</button>
</section>
<section className="rounded border border-slate-700/70 bg-slate-800/50 p-3">
<CheckboxOption
checked={allowPrivateMessages}
label="Who can send me messages? (Everybody)"
onChange={async (checked) => {
setAllowPrivateMessages(checked);
setSavingPrivacy(true);
try {
const updated = await updateMyProfile({ allow_private_messages: checked });
useAuthStore.setState({ me: updated as AuthUser });
} finally {
setSavingPrivacy(false);
}
}}
disabled={savingPrivacy}
/>
</section>
<section className="rounded border border-slate-700/70 bg-slate-800/50 p-3">
<div className="mb-2 flex items-center justify-between">
<p className="text-xs uppercase tracking-wide text-slate-400">Two-Factor Authentication</p>