Add backup attachment restore idle state

This commit is contained in:
trevor-signal
2024-10-24 16:21:02 -04:00
committed by GitHub
parent 56ccd02232
commit 8601baa7f5
13 changed files with 122 additions and 17 deletions

View File

@@ -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']);