Fix local archive attachment data inconsistency bug.

This commit is contained in:
Cody Henthorne authored and jeffrey-signal committed 2026-03-11 15:41:41 -04:00
1 parent 3c5774960a
commit 54aa477b28
1 file changed
+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()
}