From b9d2957b50b01f5aec999a112778cfffea8a4599 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 4 Mar 2026 09:52:09 -0600 Subject: [PATCH] Revert "ensure app session state refreshes on reactivation (#9954)" This reverts commit 398df1a4b51fb6d3d7145445173992781a1c0730. --- src/screens/Deactivated.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/screens/Deactivated.tsx b/src/screens/Deactivated.tsx index 363151bd80..9500f27a2b 100644 --- a/src/screens/Deactivated.tsx +++ b/src/screens/Deactivated.tsx @@ -14,7 +14,6 @@ import { useSession, useSessionApi, } from '#/state/session' -import {agentToSessionAccountOrThrow} from '#/state/session/agent' import {useLoggedOutViewControls} from '#/state/shell/logged-out' import {Logo} from '#/view/icons/Logo' import {atoms as a, useTheme} from '#/alf' @@ -37,7 +36,7 @@ export function Deactivated() { const {onPressSwitchAccount, pendingDid} = useAccountSwitcher() const {setShowLoggedOut} = useLoggedOutViewControls() const hasOtherAccounts = accounts.length > 1 - const {logoutCurrentAccount, resumeSession} = useSessionApi() + const {logoutCurrentAccount} = useSessionApi() const agent = useAgent() const [pending, setPending] = React.useState(false) const [error, setError] = React.useState() @@ -73,8 +72,7 @@ export function Deactivated() { setPending(true) await agent.com.atproto.server.activateAccount() await queryClient.resetQueries() - const account = agentToSessionAccountOrThrow(agent) - await resumeSession({...account, active: true, status: undefined}) + await agent.resumeSession(agent.session!) } catch (e: any) { switch (e.message) { case 'Bad token scope': @@ -95,7 +93,7 @@ export function Deactivated() { } finally { setPending(false) } - }, [_, agent, queryClient, resumeSession]) + }, [_, agent, setPending, setError, queryClient]) return (