Commit Graph

221 Commits

Author SHA1 Message Date
Harry
780f91dcf2
Remove outdated comment on shouldStartExpireTimer and move logic to swift 2024-10-15 15:49:51 -07:00
Harry
1be997b523
Cache TSThread in memory in backups 2024-10-09 12:45:11 -07:00
Harry
9d637f8fc7
Log how long it takes to export/import a backup 2024-10-08 15:07:53 -07:00
Harry
ce5689dcb3
Remove MockDB in favor of InMemoryDB 2024-10-07 19:06:08 -07:00
Harry Sanabria
6d6bf7bf0b Disable enqueuing orphaned backup attachments behind feature flag 2024-10-07 19:05:03 -07:00
Harry Sanabria
8d4e3d786f Don't run orphanedBackupAttachment job unless feature flag enabled 2024-10-07 18:46:35 -07:00
Harry
96e6dbca4a
Don't issue media tier delete requests on linked devices 2024-10-07 07:55:13 -07:00
Harry
88c939264c
Delete pending orphan backup attachment jobs when creating a new attachment with the same mediaName/Id 2024-10-07 07:53:11 -07:00
Harry
7c5dcf8b4f
Orphan backup attachments by mediaId as well as mediaName 2024-10-07 07:52:17 -07:00
Harry
6c20092eb3
Add OrphanedBackupAttachmentManager to delete attachments off backup cdn 2024-10-07 07:28:48 -07:00
Harry
ba2f10732e
Parametrize transaction type in DB v2 protocol 2024-10-04 16:12:52 -07:00
Harry
98e4b143ea
Add database connection access method to db v2 transactions 2024-10-04 16:10:47 -07:00
Harry
5821c8bbc9
Get uploadEra for restored attachments from the backup's AccountData.backupSubscription.subscriberId 2024-10-04 15:38:47 -07:00
Harry
0f094d17d5
Attempt auto download of transit tier attachments from backup if 3̶0̶ 45 days old 2024-10-04 15:26:09 -07:00
Harry
05523587bb
Centralize "can be thumbnailed" logic 2024-10-04 15:24:34 -07:00
Harry
6540215e72
Observe registration state in BackupAttachmentDownloadManager 2024-10-02 12:57:22 -05:00
Max Radermacher
9a5710ad1f
Add unused database support for sync messages 2024-10-02 12:54:23 -05:00
Max Radermacher
ab92cf34b0
Clean up call event delete sync code 2024-10-02 12:44:20 -05:00
Harry
16ea76a8e3
Add OrphanedBackupAttachment table 2024-10-02 09:23:26 -07:00
Harry
1a6aa23512
Don't download backup tier attachments unless on wifi 2024-10-01 12:54:37 -07:00
Ehren Kret
6e974418aa
migrate OWSReceiptManager to swift 2024-09-30 10:25:39 -07:00
Ehren Kret
5ea36cd91b enable internal imports by default 2024-09-29 20:03:17 -05:00
Max Radermacher
0882dde68b
Fix OWSColor ↔ ARGB conversions 2024-09-27 11:38:12 -05:00
Harry
ba333be714
Add BackupAttachmentDownloadManager 2024-09-27 07:25:26 -07:00
Harry
4d87719397
Fix backup copy to media tier request 2024-09-25 19:12:48 -05:00
Harry
0edcb508ed
Allow TaskQueueLoader to be stopped 2024-09-25 11:10:48 -07:00
Pete Walters
a8d12f0be2
Add backup/restore of sticker packs 2024-09-25 11:38:51 -05:00
Harry
0227da54df
Enqueue backup attachments for upload 2024-09-25 08:48:11 -07:00
Harry
c024deb4f8
Add BackupAttachmentUploadManager 2024-09-25 08:45:38 -07:00
Harry
28c598f001
Add BackupAttachmentUploadQueue table 2024-09-25 08:44:18 -07:00
Pete Walters
136b16f734
Allow blocklists to be empty for dlist archive/restore 2024-09-24 15:31:37 -05:00
Sasha Weiss
cb16a9bd59
More propertly handle "contact hidden and in message request state" from Backups 2024-09-24 10:00:36 -07:00
Sasha Weiss
966b6cacdb
Support isSMS for messages restored from Backups 2024-09-23 17:42:11 -07:00
Harry
011a321b2d
Clean up AttachmentUploadManager media tier upload method 2024-09-23 12:46:49 -07:00
Sasha Weiss
2c9d140154
Add final Backup integration tests 2024-09-18 14:12:56 -07:00
Sasha Weiss
6af2388771
Backup integration tests for quote messages 2024-09-18 10:57:19 -07:00
Sasha Weiss
e691714201
Drop profileKey fields from GroupSnapshots in Backups
Co-authored-by: Jordan Rose <jrose@signal.org>
2024-09-18 10:30:59 -07:00
Harry
3c9c891059
Track isViewOnce on MessageAttachmentReference table 2024-09-17 09:04:26 -07:00
Max Radermacher
eae1ab1e12
Upgrade to SwiftProtobuf v1.28.1 2024-09-17 09:11:11 -05:00
Ehren Kret
c5395a70a1
migrate logic from NSDate OWS category to swift extensions 2024-09-12 12:27:42 -05:00
Sasha Weiss
a1720def52
Add "simple chat updates" Backup integration test cases 2024-09-10 14:44:51 -07:00
Sasha Weiss
c0525bb24f
Add "complex chat updates" Backup integration tests 2024-09-10 11:37:35 -07:00
Sasha Weiss
b4f15c7ccb
Add "calls" Backup integration tests 2024-09-10 11:33:28 -07:00
Sasha Weiss
efe9e73005
Add "contact message" Backup integration tests 2024-09-10 10:49:15 -07:00
Sasha Weiss
17a10f7762
Add "chats" Backup integration test cases 2024-09-10 10:37:05 -07:00
Harry
a766d77280
Only back up fallback transit tier info if the encryption key matches 2024-09-09 16:53:35 -07:00
Harry
86ef1d52bc
Migration to split incrementalMac attachment columns to separate media and transit tier values 2024-09-09 16:52:02 -07:00
Sasha Weiss
961086eed0
Adopt generated Backup integration tests for AccountData 2024-09-04 14:15:45 -07:00
Harry
f30a1c0be5
Backup TODO cleanup grab bag 2024-08-30 16:07:35 -07:00
Harry
778cdd4ce2
Skip backing up messages expiring in less than 24 hours 2024-08-30 15:50:51 -07:00