From 9e4878c48f7bceeb7504dcf96b2b945e462fde1e Mon Sep 17 00:00:00 2001
From: Jannis Braun <151788261+TheZwiss@users.noreply.github.com>
Date: Sat, 21 Mar 2026 02:13:32 +0100
Subject: [PATCH] fix: move showActivity toggle from Account to Privacy
settings panel
---
.../modals/settingsPanels/AccountPanel.tsx | 26 ----------------
.../modals/settingsPanels/PrivacyPanel.tsx | 30 +++++++++++++++++++
2 files changed, 30 insertions(+), 26 deletions(-)
diff --git a/packages/web/src/components/modals/settingsPanels/AccountPanel.tsx b/packages/web/src/components/modals/settingsPanels/AccountPanel.tsx
index cb6833a5..e5b4e9f2 100644
--- a/packages/web/src/components/modals/settingsPanels/AccountPanel.tsx
+++ b/packages/web/src/components/modals/settingsPanels/AccountPanel.tsx
@@ -11,7 +11,6 @@ import type { User, UserStatus, AvatarColor } from '@backspace/shared';
import type { FederationOpResult } from '../../../utils/federationOps';
import { isElectron } from '../../../platform/platform';
import { Toggle } from '../../ui/Toggle';
-import { useActivityStore } from '../../../stores/activityStore';
function AutoLaunchSettings() {
@@ -140,7 +139,6 @@ export function AccountPanel() {
const instances = useInstanceStore((s) => s.instances);
const changePassword = useAuthStore((s) => s.changePassword);
- const showActivity = useActivityStore((s) => s.showActivity);
if (!user) return null;
@@ -777,30 +775,6 @@ export function AccountPanel() {
)}
- {/* ── Activity Status ── */}
-
-
Activity Status
-
-
-
-
Share Activity Status
-
Allow others to see what you're up to
-
-
{
- try {
- await api.users.update({ showActivity: enabled });
- useActivityStore.getState().setShowActivity(enabled);
- } catch (err) {
- console.error('Failed to update activity visibility:', err);
- }
- }}
- />
-
-
-
-
{/* ── Danger Zone ── */}
Danger Zone
diff --git a/packages/web/src/components/modals/settingsPanels/PrivacyPanel.tsx b/packages/web/src/components/modals/settingsPanels/PrivacyPanel.tsx
index 7b07fdc8..dc0b2daa 100644
--- a/packages/web/src/components/modals/settingsPanels/PrivacyPanel.tsx
+++ b/packages/web/src/components/modals/settingsPanels/PrivacyPanel.tsx
@@ -1,11 +1,13 @@
import { useState, useEffect } from 'react';
import { useAuthStore } from '../../../stores/authStore';
+import { useActivityStore } from '../../../stores/activityStore';
import { api } from '../../../api/client';
import { Toggle } from '../../ui/Toggle';
export function PrivacyPanel() {
const user = useAuthStore((s) => s.user);
const setUser = useAuthStore((s) => s.setUser);
+ const showActivity = useActivityStore((s) => s.showActivity);
const [discoverable, setDiscoverable] = useState(user?.discoverable !== false);
const [saving, setSaving] = useState(false);
@@ -48,6 +50,34 @@ export function PrivacyPanel() {
)}
+
+ {/* Activity Status */}
+
+
+ Activity Status
+
+
+
+
+
Share Activity Status
+
+ Allow others to see what you're up to, like games you're playing or music you're listening to.
+
+
+
{
+ try {
+ await api.users.update({ showActivity: enabled });
+ useActivityStore.getState().setShowActivity(enabled);
+ } catch (err) {
+ console.error('Failed to update activity visibility:', err);
+ }
+ }}
+ />
+
+
+
);
}