Commit Graph

250 Commits

Author SHA1 Message Date
Harry
9a25e5991a
Manually rollback or crash if Attachment v2 writes partially fail 2024-10-30 11:42:30 -07:00
Harry
9ba009a1e3
Add internal-only UI to display verbose backup errors 2024-10-30 11:21:53 -07:00
Harry
01fbce844f
Generate, persist, and read/write MediaRootBackupKey aka MrBurgerKing 2024-10-28 10:28:27 -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
Marissa Le Coz
3d8eb76994
Add view-once messages to backups 2024-10-25 19:48:58 -04:00
Harry
0c75d27170
Add LinkNSyncManager skeleton 2024-10-25 14:35:12 -07:00
Harry
535acba11c
Add encryption mode to backups for link'n'sync support 2024-10-25 14:30:00 -07:00
Sasha Weiss
8ebcc1e4ec
Update to the latest Backup integration test cases 2024-10-25 13:28:33 -07:00
Harry
f149718964
Make backup media list endpoint handling more efficient 2024-10-25 11:09:51 -07:00
Sasha Weiss
46b5b4a9e4
Prefix donations-related types with Donations 2024-10-25 10:14:56 -07:00
Sasha Weiss
ed6a75e10f
Remove the SubscriptionManager protocol 2024-10-25 10:13:10 -07:00
Pete Walters
d9e411208a
ChunkedInputStreamTransform performance improvements 2024-10-24 15:04:17 -05:00
Pete Walters
e5a5f7c451
Cache the TSInteraction insert statement for backup restore. 2024-10-24 11:54:46 -05:00
Harry
57fd3b6418
Circumvent ModelReadCache on backup export 2024-10-22 15:40:07 -07:00
Harry Sanabria
72430f103a Don't list media if feature flag disabled 2024-10-22 14:39:09 -07:00
Harry
0c3c55ce32
Check for >0 timestamps for link previews 2024-10-22 15:06:09 -04:00
Harry
9956bd3ce0
Disable DatabaseChangeObserver while creating and restoring backups 2024-10-22 10:43:40 -07:00
Harry
374a980281
Cache attachment reads on backup export 2024-10-22 10:40:34 -07:00
Harry
63d820b830
List media tier attachments 2024-10-22 10:39:03 -07:00
Ehren Kret
9d24c6b111 add asyncRequest method to NetworkManager to deprecate Promises 2024-10-22 10:57:19 -05:00
Harry
e8e01bbe11
Directly insert in the database in MessageBackupStoryStore 2024-10-21 16:43:03 -07:00
Harry
30c4b02f92
Directly insert in the database in MessageBackupThreadStore 2024-10-21 16:42:17 -07:00
Harry
7650e8d993
Bypass sdsSave for interactions restored from backups 2024-10-21 16:41:26 -07:00
Harry
576dad141e
Add BackupFullTextSearchIndexer 2024-10-21 16:20:39 -07:00
Harry
1dd5ce5698
Refactor Backup postFrameRestoreActions to support thread visibility needs 2024-10-18 14:00:32 -07:00
Harry
d3e3e84023
Don't fetch original message for quote by timestamp 2024-10-18 13:55:25 -07:00
Harry
383755d71e
Add MessageBackupStoryStore 2024-10-18 13:08:25 -07:00
Harry
347b8adbf2
Add MessageBackupThreadStore 2024-10-18 13:06:57 -07:00
Harry
60e590c21b
Add MessageBackupInteractionStore 2024-10-18 13:01:09 -07:00
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