Fix local archive attachment data inconsistency bug.

This commit is contained in:
Cody Henthorne
2026-03-09 10:14:36 -04:00
committed by jeffrey-signal
parent 3c5774960a
commit 54aa477b28

View File

@@ -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()
}