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;
}
} 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,