Add media granularity to backup attachment download source

This commit is contained in:
trevor-signal 2025-09-10 16:16:46 -04:00 committed by GitHub
commit 11e612f57b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 74 additions and 49 deletions

View file

@ -61,7 +61,9 @@ export type MessageAttachmentsDownloadedType = {
};
function getLogger(source: AttachmentDownloadSource) {
const verbose = source !== AttachmentDownloadSource.BACKUP_IMPORT;
const verbose =
source !== AttachmentDownloadSource.BACKUP_IMPORT_NO_MEDIA &&
source !== AttachmentDownloadSource.BACKUP_IMPORT_WITH_MEDIA;
const log = verbose ? defaultLogger : { ...defaultLogger, info: () => null };
return log;
}