From 136fdee55a018154090263bbacc3687bd64fcff2 Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Wed, 3 Dec 2025 15:23:07 -0600 Subject: [PATCH] Fix loading more audio in media gallery Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> --- ts/components/conversation/media-gallery/MediaGallery.dom.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts/components/conversation/media-gallery/MediaGallery.dom.tsx b/ts/components/conversation/media-gallery/MediaGallery.dom.tsx index ac73a64ed2..61193b4403 100644 --- a/ts/components/conversation/media-gallery/MediaGallery.dom.tsx +++ b/ts/components/conversation/media-gallery/MediaGallery.dom.tsx @@ -276,7 +276,7 @@ export function MediaGallery({ loadingRef.current = true; } } else if (tabViewRef.current === TabViews.Audio) { - if (!haveOldestMedia) { + if (!haveOldestAudio) { loadMore(conversationId, 'audio'); loadingRef.current = true; } @@ -306,6 +306,7 @@ export function MediaGallery({ conversationId, haveOldestDocument, haveOldestMedia, + haveOldestAudio, haveOldestLink, loading, loadMore,