mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
Fix loading more audio in media gallery
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user