From 5fe64f203576874d151d2c5aec0218981a07bfc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicole=20Miko=C5=82ajczyk?= Date: Fri, 18 Apr 2025 07:49:09 +0200 Subject: [PATCH] pl-fe: add missing feature gate 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/features/bubble-timeline/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/pl-fe/src/features/bubble-timeline/index.tsx b/packages/pl-fe/src/features/bubble-timeline/index.tsx index e2babe414..c927e3b8b 100644 --- a/packages/pl-fe/src/features/bubble-timeline/index.tsx +++ b/packages/pl-fe/src/features/bubble-timeline/index.tsx @@ -6,6 +6,7 @@ import { useBubbleStream } from 'pl-fe/api/hooks/streaming/use-bubble-stream'; import PullToRefresh from 'pl-fe/components/pull-to-refresh'; import Column from 'pl-fe/components/ui/column'; import { useAppDispatch } from 'pl-fe/hooks/use-app-dispatch'; +import { useFeatures } from 'pl-fe/hooks/use-features'; import { useIsMobile } from 'pl-fe/hooks/use-is-mobile'; import { useSettings } from 'pl-fe/hooks/use-settings'; import { useTheme } from 'pl-fe/hooks/use-theme'; @@ -21,6 +22,7 @@ const BubbleTimeline = () => { const dispatch = useAppDispatch(); const theme = useTheme(); + const features = useFeatures(); const settings = useSettings(); const onlyMedia = settings.timelines.bubble?.other.onlyMedia ?? false; @@ -33,7 +35,7 @@ const BubbleTimeline = () => { const handleRefresh = () => dispatch(fetchBubbleTimeline({ onlyMedia }, true)); - useBubbleStream({ onlyMedia }); + useBubbleStream({ onlyMedia, enabled: features.bubbleTimelineStreaming }); useEffect(() => { dispatch(fetchBubbleTimeline({ onlyMedia }));