mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-29 12:53:35 +01:00
Add media granularity to backup attachment download source
This commit is contained in:
@@ -5577,7 +5577,10 @@ function _getAttachmentDownloadJob(
|
||||
function removeAllBackupAttachmentDownloadJobs(db: WritableDB): void {
|
||||
const [query, params] = sql`
|
||||
DELETE FROM attachment_downloads
|
||||
WHERE source = ${AttachmentDownloadSource.BACKUP_IMPORT};`;
|
||||
WHERE
|
||||
source = ${AttachmentDownloadSource.BACKUP_IMPORT_WITH_MEDIA}
|
||||
OR
|
||||
source = ${AttachmentDownloadSource.BACKUP_IMPORT_NO_MEDIA};`;
|
||||
db.prepare(query).run(params);
|
||||
}
|
||||
|
||||
@@ -7739,6 +7742,7 @@ function removeAllConfiguration(db: WritableDB): void {
|
||||
db.exec(
|
||||
`
|
||||
DELETE FROM attachment_backup_jobs;
|
||||
DELETE FROM attachment_downloads;
|
||||
DELETE FROM backup_cdn_object_metadata;
|
||||
DELETE FROM groupSendCombinedEndorsement;
|
||||
DELETE FROM groupSendMemberEndorsement;
|
||||
|
||||
Reference in New Issue
Block a user