Add media granularity to backup attachment download source
This commit is contained in:
parent
2432631fb9
commit
11e612f57b
12 changed files with 74 additions and 49 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue