Show attachment download progress, new stop button to cancel
Co-authored-by: Jamie Kyle <jamie@signal.org>
This commit is contained in:
parent
025841e5bb
commit
2741fbb5d2
78 changed files with 2192 additions and 562 deletions
|
@ -488,6 +488,7 @@ export const DataWriter: ServerWritableInterface = {
|
|||
saveAttachmentDownloadJobs,
|
||||
resetAttachmentDownloadActive,
|
||||
removeAttachmentDownloadJob,
|
||||
removeAttachmentDownloadJobsForMessage,
|
||||
removeAllBackupAttachmentDownloadJobs,
|
||||
|
||||
getNextAttachmentBackupJobs,
|
||||
|
@ -5129,6 +5130,18 @@ function removeAttachmentDownloadJob(
|
|||
db.prepare(query).run(params);
|
||||
}
|
||||
|
||||
function removeAttachmentDownloadJobsForMessage(
|
||||
db: WritableDB,
|
||||
messageId: string
|
||||
): void {
|
||||
const [query, params] = sql`
|
||||
DELETE FROM attachment_downloads
|
||||
WHERE messageId = ${messageId}
|
||||
`;
|
||||
|
||||
db.prepare(query).run(params);
|
||||
}
|
||||
|
||||
// Backup Attachments
|
||||
|
||||
function clearAllAttachmentBackupJobs(db: WritableDB): void {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue