From bc62e055320ee247706e8d60a166593ca7bd0c45 Mon Sep 17 00:00:00 2001 From: trevor-signal <131492920+trevor-signal@users.noreply.github.com> Date: Fri, 8 Aug 2025 14:06:54 -0400 Subject: [PATCH] Fix backup thumbnail encryption when downloading --- ts/textsecure/downloadAttachment.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts/textsecure/downloadAttachment.ts b/ts/textsecure/downloadAttachment.ts index 63640b9e44..c5b08ec580 100644 --- a/ts/textsecure/downloadAttachment.ts +++ b/ts/textsecure/downloadAttachment.ts @@ -38,6 +38,7 @@ import { getBackupMediaRootKey, deriveBackupMediaKeyMaterial, type BackupMediaKeyMaterialType, + deriveBackupThumbnailTransitKeyMaterial, } from '../services/backups/crypto'; import { backupsService } from '../services/backups'; import { @@ -72,7 +73,7 @@ function getBackupThumbnailInnerEncryptionKeyMaterial( ): BackupMediaKeyMaterialType { const mediaId = getMediaIdForAttachmentThumbnail(attachment); const backupKey = getBackupMediaRootKey(); - return deriveBackupMediaKeyMaterial(backupKey, mediaId.bytes); + return deriveBackupThumbnailTransitKeyMaterial(backupKey, mediaId.bytes); } function getBackupThumbnailOuterEncryptionKeyMaterial( attachment: BackupableAttachmentType