Commit Graph

80 Commits

Author SHA1 Message Date
Pete Walters
1761235f88
Migrate from YYImage to SDWebImage 2025-09-10 21:39:41 -05:00
Harry
94e291ed16
Update to LibSignal v0.74.1 (Backup.LocatorInfo.integrityCheck)
Co-authored-by: Max Radermacher <max@signal.org>
2025-06-16 16:03:35 -07:00
Harry
3d81e6f18c
Backups x Attachments fixes grab bag 2025-05-22 21:44:09 -07:00
Harry
3c04ce744f
TSAttachment migration logging/error handling improvements 2025-04-16 14:16:42 -07:00
Sasha Weiss
be619eb10b
Make DBWriteTransaction only take sync completions 2025-03-21 15:27:42 -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
Max Radermacher
1810cfc624 Don’t return the remote config when refreshing 2025-03-06 23:35:16 -06:00
Max Radermacher
738ef16c3d Use web socket when fetching remote configs 2025-03-06 23:35:16 -06:00
Max Radermacher
c2070943a5
Prefer infallible String → Data construct 2025-03-06 13:56:16 -06:00
Sasha Weiss
2954d34687
Separately report progress for recreating indexes during Backup import 2025-02-25 09:51:15 -08:00
Ehren Kret
0a5677997e
remove NSDate OWS objc category 2025-02-05 11:06:42 -06:00
Harry
2c289822ce
Try the TSAttachment migration again after a week even if failed 2025-01-17 12:54:14 -08:00
Harry
79ff5f48cc
Remote config tsattachment migration delay 2025-01-17 11:25:47 -08:00
Harry
2d5436ce35
Don't count TSAttachment migration batch as failure if we never even try it 2025-01-17 10:48:49 -08:00
Harry
7cedd5d295
Make TSAttachment migration skippable by user once we make it launch-blocking (but still incremental) 2025-01-14 07:47:13 -08:00
Max Radermacher
357e05e853
Fix a few warnings 2025-01-08 13:39:44 -06:00
Harry
f4ee34796f
Run TSAttachmentMigration while the app is running; allow it to be run blocking but incremental 2025-01-07 17:06:23 -08:00
Harry
d9be87a76d
Make TSAttachment migration non-blocking again
Co-authored-by: sashaweiss-signal <sasha@signal.org>
2024-12-16 18:09:20 -08:00
Harry
3467b671c5
Pass an NSProgress into the TSAttachment migration
Co-authored-by: Elaine <elaine@signal.org>
2024-12-13 15:51:12 -08:00
Harry
401c361db0
Don't block on failure to delete TSAttachment folder 2024-12-12 14:45:23 -08:00
Harry
d3bb029a90
Don't fail TSAttachment migration on quoted reply validation errors 2024-12-12 10:25:59 -08:00
Harry
d62d96424e
Reduce memory usage of TSAttachment migration 2024-12-05 16:40:42 -08:00
Harry
b76fae88ba
Don't fail when unable to read quote image in TSAttachment migration 2024-12-05 14:47:47 -06:00
Harry
5a14e3842b
Make TSMessage TSAttachment migration blocking 2024-11-26 08:52:16 -08:00
Harry
1f56ed5181
[RFC] Run IncrementalTSAttachmentMigrator when the main app is foregrounded 2024-11-08 09:06:40 -08:00
Harry
13cd59a2a0
Pass AppReadiness instance to a bunch of usage sites that are only 1 layer deep 2024-09-27 14:02:07 -07:00
Harry
fd0a34909e
Add non-global AppReadiness protocol + impl 2024-09-27 12:36:15 -07:00
Harry
7b69618ae2
Genericize BGProcessingTask runner for reuse 2024-09-17 11:19:29 -07:00
Harry
3c9c891059
Track isViewOnce on MessageAttachmentReference table 2024-09-17 09:04:26 -07:00
Harry
6fd4d5f12f
Don't run TSAttachment migration in main app 2024-09-16 11:48:32 -07:00
Max Radermacher
28687e6ba7
Improve performance when generating waveforms 2024-09-04 17:36:58 -05:00
Harry
555e24e65a
Add break glass for TSMessage.TSAttachment migration in prod 2024-08-21 09:20:54 -07:00
Harry
65f20485b9
Swallow file copying error for failed tsattachment file read 2024-08-21 11:55:54 -04:00
Harry
fc8c8a16ef
Drop story attachment files with file/io errors in migration 2024-08-16 10:24:09 -07:00
Ehren Kret
086b4abfa5 fix several warnings 2024-08-15 16:09:58 -05:00
Harry
c3fb18bf78
Stop incremental migrator when backgrounding app 2024-08-14 11:58:18 -07:00
Harry Sanabria
258826b0ff Add 2 small logs to migration 2024-08-14 11:39:19 -07:00
Harry
df444b685b
Try copying file first if we hit a file i/o error when validating migration attachment file 2024-08-14 11:24:53 -07:00
Harry
d45634cf8e
Avoid uneccesary full log string redaction in attachment migration error log 2024-08-13 09:15:19 -07:00
Harry
8a6b3e4c00
Don't accept directories as attachment files in TSAttachment migration 2024-08-12 17:09:45 -07:00
Harry
fb73508927
Log TSAttachment migration FileHandle error while replacing filename 2024-08-12 14:07:07 -07:00
Harry
7a9bd74fd8
Wrap sql/filesystem errors in OWSAssertionErrors 2024-08-06 09:07:45 -07:00
Harry
6078f715a8
Treat message TSAttachment rows we can't parse as if they don't exist, possibly producing invalid TSMessages 2024-08-06 09:06:13 -07:00
Harry
4e8ea9d65a
Mark file invalid instead of throwing when failing to parse audio duration 2024-08-06 09:05:04 -07:00
Harry
0dcf34e5b5
Fall back to quote stubs for more migration quoted reply errors 2024-08-06 09:04:11 -07:00
Harry
4f5d8c8450
Skip messages with easily skippable migration errors 2024-08-06 09:03:01 -07:00
Harry
fffbbe9886
Ignore blob columns that fail to unarchive when migrating TSAttachments 2024-08-06 09:01:57 -07:00
Harry
2b587ac3cf
Don't uneccessarily throw in archive method 2024-08-06 08:57:21 -07:00
Harry
a48353d658
Drop duplicate TSAttachments on a single TSMessage in the migration 2024-08-02 14:49:47 -07:00
Harry
546ae94e7e
Drop legacy attachment files that are too big 2024-08-01 11:57:05 -07:00