mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 18:00:02 +01:00
Add some local timings to backup export.
This commit is contained in:
@@ -598,7 +598,12 @@ class AttachmentTable(
|
||||
val iv = cursor.requireBlob(REMOTE_IV) ?: Util.getSecretBytes(16)
|
||||
val digest = run {
|
||||
val fileInfo = getDataFileInfo(attachmentId)!!
|
||||
calculateDigest(fileInfo, key, iv)
|
||||
try {
|
||||
calculateDigest(fileInfo, key, iv)
|
||||
} catch (e: FileNotFoundException) {
|
||||
Log.w(TAG, "[createKeyIvDigestForAttachmentsThatNeedArchiveUpload][$attachmentId] Could not find file ${fileInfo.file}. Delete all later?")
|
||||
return@forEach
|
||||
}
|
||||
}
|
||||
|
||||
writableDatabase.update(TABLE_NAME)
|
||||
|
||||
@@ -133,7 +133,7 @@ class GroupReceiptTable(context: Context?, databaseHelper: SignalDatabase?) : Da
|
||||
.readToList { it.toGroupReceiptInfo() }
|
||||
}
|
||||
|
||||
fun getGroupReceiptInfoForMessages(ids: Set<Long>): Map<Long, List<GroupReceiptInfo>> {
|
||||
fun getGroupReceiptInfoForMessages(ids: Collection<Long>): Map<Long, List<GroupReceiptInfo>> {
|
||||
if (ids.isEmpty()) {
|
||||
return emptyMap()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user