From bfa415bd86a1f2e26c04a112c3866708877cc269 Mon Sep 17 00:00:00 2001 From: vineyardbovines Date: Wed, 25 Feb 2026 13:58:01 -0500 Subject: [PATCH] reset ptr to false when component is inactive --- src/view/com/notifications/NotificationFeed.tsx | 6 ++++++ src/view/com/posts/PostFeed.tsx | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/view/com/notifications/NotificationFeed.tsx b/src/view/com/notifications/NotificationFeed.tsx index fb7d982eaa..2347f9ebe0 100644 --- a/src/view/com/notifications/NotificationFeed.tsx +++ b/src/view/com/notifications/NotificationFeed.tsx @@ -162,6 +162,12 @@ export function NotificationFeed({ [isFetchingNextPage], ) + React.useEffect(() => { + if (!enabled) { + setIsPTRing(false) + } + }, [enabled]) + return ( {error && ( diff --git a/src/view/com/posts/PostFeed.tsx b/src/view/com/posts/PostFeed.tsx index 9ae241f9ba..903d68f04b 100644 --- a/src/view/com/posts/PostFeed.tsx +++ b/src/view/com/posts/PostFeed.tsx @@ -683,6 +683,12 @@ let PostFeed = ({ blockedOrMutedAuthors, ]) + useEffect(() => { + if (enabled === false) { + setIsPTRing(false) + } + }, [enabled]) + // events // =