From c53847c0af7343a118fb9526b7105fe09bc04ceb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Fri, 13 Jun 2025 11:56:30 +0200 Subject: [PATCH] pl-fe: im stupid lol MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/pl-fe/src/components/status.tsx | 5 ++++- packages/pl-fe/src/reducers/statuses.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/pl-fe/src/components/status.tsx b/packages/pl-fe/src/components/status.tsx index 5b7f2e00f..1df051a5d 100644 --- a/packages/pl-fe/src/components/status.tsx +++ b/packages/pl-fe/src/components/status.tsx @@ -194,7 +194,10 @@ const Status: React.FC = (props) => { (node.current?.querySelector('.emoji-picker-dropdown') as HTMLButtonElement)?.click(); }; - const handleUnfilter = () => dispatch(unfilterStatus(status.filtered.length ? status.id : actualStatus.id)); + const handleUnfilter = () => { + dispatch(unfilterStatus(actualStatus.id)); + if (actualStatus.id !== status.id) dispatch(unfilterStatus(status.id)); + }; const statusInfo = useMemo(() => { if (isReblog && showGroup && group) { diff --git a/packages/pl-fe/src/reducers/statuses.ts b/packages/pl-fe/src/reducers/statuses.ts index 90d5acc87..25008bc23 100644 --- a/packages/pl-fe/src/reducers/statuses.ts +++ b/packages/pl-fe/src/reducers/statuses.ts @@ -255,7 +255,7 @@ const statuses = (state = initialState, action: EmojiReactsAction | EventsAction return create(state, (draft) => { const status = draft[action.statusId]; if (status) { - status.showFiltered = false; + status.showFiltered = true; } }); case TIMELINE_DELETE: