mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-02 08:23:00 +01:00
Fix local archive attachment data inconsistency bug.
This commit is contained in:
committed by
jeffrey-signal
parent
3c5774960a
commit
54aa477b28
@@ -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