mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Fix backup thumbnail encryption when downloading
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user