Fix loading more audio in media gallery

This commit is contained in:
Fedor Indutny
2025-12-03 13:10:08 -08:00
committed by GitHub
parent c9cd864012
commit b51d5938ce

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,