Back after switching accounts no longer does nothing (#128) #129

Merged
jcoffey-dev merged 1 commits from fix/128-account-switch-back into main 2026-11-19 21:08:44 +00:00
+5 -1
View File
@@ -201,7 +201,11 @@ export function AppShell({ children }: { children: ReactNode }) {
return;
}
useSession.getState().view(id);
navigate("/mail");
// Replace, in a tab as in the installed app (#128): the account shown
// isn't in the URL, so a page left in the history can't bring the old
// account back -- Back would land on the inbox already showing and seem
// to do nothing.
navigate("/mail", { replace: true });
};
const composeOff = section !== "files" && section !== "calendar" && section !== "contacts" && composeBlocked() !== null;