mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-08-18 19:23:25 +01:00
Fix local archive attachment data inconsistency bug.
This commit is contained in:
+1
-1
@@ -182,7 +182,7 @@ fun DatabaseAttachment.toLocatorInfo(backupMode: BackupMode): FilePointer.Locato
|
||||
AttachmentType.INVALID -> Unit
|
||||
}
|
||||
|
||||
if (backupMode.isLocalBackup && this.dataHash != null && this.metadata?.localBackupKey != null) {
|
||||
if (backupMode.isLocalBackup && this.dataHash != null && this.metadata?.localBackupKey != null && attachmentType != AttachmentType.TRANSIT) {
|
||||
if (locatorBuilder.plaintextHash == null) {
|
||||
locatorBuilder.plaintextHash = Base64.decode(this.dataHash).toByteString()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user