Fix loading more audio in media gallery

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2025-12-03 15:23:00 -06:00
committed by GitHub
parent a0bd1da079
commit 69fd2214e1

View File

@@ -276,7 +276,7 @@ export function MediaGallery({
loadingRef.current = true; loadingRef.current = true;
} }
} else if (tabViewRef.current === TabViews.Audio) { } else if (tabViewRef.current === TabViews.Audio) {
if (!haveOldestMedia) { if (!haveOldestAudio) {
loadMore(conversationId, 'audio'); loadMore(conversationId, 'audio');
loadingRef.current = true; loadingRef.current = true;
} }
@@ -306,6 +306,7 @@ export function MediaGallery({
conversationId, conversationId,
haveOldestDocument, haveOldestDocument,
haveOldestMedia, haveOldestMedia,
haveOldestAudio,
haveOldestLink, haveOldestLink,
loading, loading,
loadMore, loadMore,