Commit Graph

238 Commits

Author SHA1 Message Date
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
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