mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Only delete archived media from CDN 3.
This commit is contained in:
committed by
Cody Henthorne
parent
a181b35e8d
commit
93161aa425
@@ -1333,6 +1333,7 @@ object BackupRepository {
|
||||
mediaId = it.mediaId
|
||||
)
|
||||
}
|
||||
.filter { it.cdn == Cdn.CDN_3.cdnNumber }
|
||||
|
||||
if (mediaToDelete.isEmpty()) {
|
||||
Log.i(TAG, "No media to delete, quick success")
|
||||
@@ -1375,6 +1376,7 @@ object BackupRepository {
|
||||
mediaId = it.mediaId
|
||||
)
|
||||
}
|
||||
.filter { it.cdn == Cdn.CDN_3.cdnNumber }
|
||||
.chunked(itemLimit)
|
||||
|
||||
if (mediaChunksToDelete.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user