mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Fix another syncing crash when no archived media exists.
This commit is contained in:
committed by
Cody Henthorne
parent
6525662071
commit
8e880fe117
@@ -156,6 +156,10 @@ class BackupMediaSnapshotTable(context: Context, database: SignalDatabase) : Dat
|
||||
* Given a list of media objects, find the ones that we have no knowledge of in our local store.
|
||||
*/
|
||||
fun getMediaObjectsWithNonMatchingCdn(objects: List<ArchivedMediaObject>): List<CdnMismatchResult> {
|
||||
if (objects.isEmpty()) {
|
||||
return emptyList()
|
||||
}
|
||||
|
||||
val inputValues = objects.joinToString(separator = ", ") { "('${it.mediaId}', ${it.cdn})" }
|
||||
return readableDatabase.rawQuery(
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user