Persist feed tab across navigation — back button returns to correct tab

Feed tab (Global/Following) moved from local state to UI store so it
survives thread/profile navigation. Fixed hardcoded "feed" in openThread
calls to pass currentView instead.
This commit is contained in:
Jure
2026-03-14 16:23:51 +01:00
parent 3ca73a8b01
commit ef35f20688
4 changed files with 10 additions and 7 deletions

View File

@@ -191,7 +191,7 @@ export function NoteCard({ event, focused }: NoteCardProps) {
onClick={async (e) => {
e.stopPropagation();
const parent = await fetchNoteById(parentEventId);
if (parent) openThread(parent, "feed");
if (parent) openThread(parent, currentView as "feed" | "profile");
}}
className="hover:text-accent transition-colors"
>