mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-20 16:38:21 +01:00
Add backup attachment restore idle state
This commit is contained in:
@@ -409,6 +409,15 @@ describe('AttachmentDownloadManager/JobManager', () => {
|
||||
idx % 2 === 0
|
||||
? AttachmentDownloadSource.BACKUP_IMPORT
|
||||
: AttachmentDownloadSource.STANDARD,
|
||||
digest: `digestFor${idx}`,
|
||||
attachment: {
|
||||
contentType: MIME.IMAGE_JPEG,
|
||||
size: 128,
|
||||
digest: `digestFor${idx}`,
|
||||
backupLocator: {
|
||||
mediaName: 'medianame',
|
||||
},
|
||||
},
|
||||
}));
|
||||
// make one of the backup job messages visible to test that code path as well
|
||||
downloadManager?.updateVisibleTimelineMessages(['message-0', 'message-1']);
|
||||
|
||||
Reference in New Issue
Block a user