Show the download icon overlay if no thumbnail present

This commit is contained in:
Pete Walters 2026-06-01 12:57:01 -05:00 committed by GitHub
parent dc3a819024
commit 44e6c6cb43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1373,8 +1373,15 @@ private extension CVComponentState.Builder {
.paid(let optimizeLocalStorage),
.paidAsTester(let optimizeLocalStorage),
.paidExpiringSoon(let optimizeLocalStorage):
if optimizeLocalStorage {
mediaAlbumHasSkippedAttachment = !canAutoDownloadAttachment(referencedAttachment: attachment)
if
optimizeLocalStorage,
canAutoDownloadAttachment(referencedAttachment: attachment),
attachment.attachment.localRelativeFilePathThumbnail != nil
{
// If optimize storage is enabled, auto-downloads are enabled,
// and the backup thumbnail is present, show the backup thumbnail
// as a true attachment (don't show the download icon overlay).
mediaAlbumHasSkippedAttachment = false
} else {
mediaAlbumHasSkippedAttachment = true
}