From 4c15e01460e3052d1625df0ecd452a1b641ef92b Mon Sep 17 00:00:00 2001 From: TerryM Date: Thu, 28 May 2026 16:37:00 +0800 Subject: [PATCH] fix: keep video downloads visible while playing --- .../messageStream/MessageStream.tsx | 6 +++-- .../messageStream/bubbles/VideoBubble.tsx | 26 ++++++++++++------- .../messageStream/hooks/usePostStream.ts | 6 +++++ src/layouts/PublicLayout.tsx | 17 +++++++----- src/pages/Browse/index.tsx | 12 +++++---- src/pages/Home/index.tsx | 5 ++-- 6 files changed, 48 insertions(+), 24 deletions(-) diff --git a/src/components/messageStream/MessageStream.tsx b/src/components/messageStream/MessageStream.tsx index 2462c39..5a58b06 100644 --- a/src/components/messageStream/MessageStream.tsx +++ b/src/components/messageStream/MessageStream.tsx @@ -18,10 +18,12 @@ export function MessageStream({ scope }: MessageStreamProps) { const type = sp.get("type") || "all"; const q = (sp.get("q") || "").trim(); + const sort = sp.get("sort") || ""; + const tag = sp.get("tag") || ""; const params = useMemo( - () => ({ scope, type, q, lang }), - [scope, type, q, lang], + () => ({ scope, type, q, sort, tag, lang }), + [scope, type, q, sort, tag, lang], ); const { items, isLoading, error, hasMore, loadMore, reset } = diff --git a/src/components/messageStream/bubbles/VideoBubble.tsx b/src/components/messageStream/bubbles/VideoBubble.tsx index c553eee..6ec6fb3 100644 --- a/src/components/messageStream/bubbles/VideoBubble.tsx +++ b/src/components/messageStream/bubbles/VideoBubble.tsx @@ -77,15 +77,23 @@ function VideoAttachmentCard({ }} > {playing && !compact ? ( -