Commit Graph

50 Commits

Author SHA1 Message Date
Sasha Weiss
8d8c1ef921
Periodic cleanup of FeatureFlags 2025-04-02 17:26:03 -07:00
Sasha Weiss
8394080dfc
Only enqueue new downloads for backup-restored media in willBecomeVisible 2025-03-27 15:55:47 -07:00
Sasha Weiss
bb048e8b59
One transaction type to rule them all and in the darkness bind them 2025-03-13 21:43:35 -07:00
Pete Walters
114e2344d0
Update SVR API to take explicit keys vs generating 2025-02-24 08:29:54 -06:00
Ehren Kret
189edf63cf remove Date.isBefore(_) and Date.isAfter(_) extensions 2025-02-10 09:00:02 -06:00
Ehren Kret
0a5677997e
remove NSDate OWS objc category 2025-02-05 11:06:42 -06:00
Sasha Weiss
a98dba05c5
Split the Link'n'Sync feature flags for export/import 2025-02-04 12:52:00 -08:00
Harry
13638b85b4
Catch 404 errors fetching backup media tier auth credentials 2025-01-21 14:02:09 -08:00
Harry
061227f414
Track IsPastEditRevision for media gallery filtering 2024-12-02 08:27:54 -08:00
Sasha Weiss
2000b82c0b
One KeyValueStore to rule them all 2024-11-15 18:47:54 -06:00
Harry
4201f8b1fd
Don't even trigger backup upload job for free tier users 2024-11-15 10:02:44 -06:00
Harry Sanabria
49dcd39e54 Use message timestamp for optimistic backup attachment download comparison 2024-11-14 14:03:25 -08:00
Harry Sanabria
187390599c Adjust backup feature flags 2024-11-14 13:19:18 -08:00
Harry
d72edeea62
Add rudimentary link'n'sync confirmation sheet 2024-11-13 15:45:44 -08:00
Harry
44770cef3d
Add retrying to MessageBackupAvatarFetcher 2024-11-12 13:29:36 -08:00
Harry
ead020a482
Dont owsFailDebug when MRBK is missing 2024-11-06 06:25:27 -08:00
Pete Walters
3a63402138
Migrate to new Media/Message backup auth credentials 2024-11-01 15:46:58 -05:00
Pete Walters
5a44fc6162
Migrate to LibSignal key derivation
Co-authored-by: sashaweiss-signal <sasha@signal.org>
2024-11-01 15:39:42 -05:00
Pete Walters
655e7bd206
Add a "purpose" enum to MBAuthCredentialManager
Co-authored-by: sashaweiss-signal <sasha@signal.org>
2024-11-01 15:39:11 -05:00
Harry
ba81099bbd
Add toggle to enable link'n'sync for internal builds 2024-10-30 15:04:05 -07:00
Harry
9a25e5991a
Manually rollback or crash if Attachment v2 writes partially fail 2024-10-30 11:42:30 -07:00
Harry
8ecae5c825
Use remote config value to determine which transit tier attachments we auto-download off backups 2024-10-28 09:30:57 -07:00
Harry
f149718964
Make backup media list endpoint handling more efficient 2024-10-25 11:09:51 -07:00
Harry Sanabria
72430f103a Don't list media if feature flag disabled 2024-10-22 14:39:09 -07:00
Harry
63d820b830
List media tier attachments 2024-10-22 10:39:03 -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
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
5ea36cd91b enable internal imports by default 2024-09-29 20:03:17 -05:00
Harry
ba333be714
Add BackupAttachmentDownloadManager 2024-09-27 07:25:26 -07:00
Harry
0edcb508ed
Allow TaskQueueLoader to be stopped 2024-09-25 11:10:48 -07: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
Sasha Weiss
efe9e73005
Add "contact message" Backup integration tests 2024-09-10 10:49:15 -07:00
Sasha Weiss
3cdf735b40
Pare down TSInteraction initializers 2024-08-06 10:06:20 -07:00
Harry
82862885c3
Add BackupAttachmentDownloadStore 2024-08-01 10:25:36 -07:00
Harry
5a7d154d16
Add BackupAttachmentDownloadQueue table 2024-08-01 10:24:27 -07:00