Harry
b18a0f4e0d
Don't cache full TSThreads on backup export
2024-11-19 16:50:11 -06:00
Max Radermacher
f498fdae2a
Fix AudioWaveform decoding warnings
2024-11-19 16:44:20 -06:00
Max Radermacher
f9554761e4
Adopt non-deprecated NSKeyedUnarchiver method
2024-11-19 16:44:02 -06:00
Harry
3175edfbf4
Drop invalid link previews on backup export; ignore them on import
2024-11-19 15:17:17 -06:00
Harry
ddf349e6f6
Log timestamps for backup interaction errors
2024-11-19 14:53:04 -06:00
Sasha Weiss
4fe3b9e71c
Mark calls without CallRecords as read
2024-11-19 10:20:14 -08:00
Ehren Kret
25c0f4a4c8
convert badge code from promises to swift concurrency
2024-11-19 12:06:39 -06:00
Pete Walters
bd4fa8c757
Drop message bodies longer than 2048 bytes
2024-11-18 16:19:35 -06:00
Marissa Le Coz
53966a55d8
Add restore button to registration splash screen
2024-11-18 16:01:05 -05:00
Max Radermacher
7fe3d40a1a
Remove KeyValueStore protocol file
2024-11-18 14:35:04 -06:00
Harry
39ec17ce19
Suspend message processing during backups
2024-11-18 13:56:57 -06:00
Alex Konradi
218a01da38
Remove redundant zkcCredential=true
2024-11-18 14:33:05 -05:00
Pete Walters
00a6927884
Simplify payment archiving
2024-11-18 09:12:00 -06:00
Sasha Weiss
2000b82c0b
One KeyValueStore to rule them all
2024-11-15 18:47:54 -06:00
Harry
eb45be11c1
Use autoreleasepool for backup import/export
2024-11-15 16:36:17 -08:00
Harry
72071c2216
Enumerate call links and sticker packs when exporting backups
2024-11-15 16:35:40 -08:00
Adam Sharp
f00c613f38
Mark actor properties nonisolated where it isn't inferred
...
Swift 6 began generating a warning that `await` is required when accessing
`let` properties on actors where the type is not `Sendable`. (If the type is
`Sendable`, they are automatically inferred to be `nonisolated`.)
This resolves that specific warning, but would generate different warnings
under strict concurrency checking or Swift 6 mode. The ultimate solution should
be to audit these types for sendability.
2024-11-15 19:10:46 -05:00
Adam Sharp
5492198043
Audit AttachmentDownloadManagerImpl.ProgressStates for sendability
2024-11-15 19:08:11 -05:00
Adam Sharp
68bee00b8b
Audit OWSOperation for sendability
2024-11-15 19:04:36 -05:00
Sasha Weiss
dadca9e032
Directly adopt KeyValueStore in SDSKeyValueStore
2024-11-15 14:54:30 -08:00
Max Radermacher
a6a6c608d6
Fix indentation in Atomics.swift
2024-11-15 16:04:02 -06:00
Harry
b0c5ab65f6
Bench memory usage in backups
2024-11-15 13:47:15 -08:00
Adam Sharp
f19110add6
Add TSMutex to replace UnfairLock
...
Renames UnfairLock to TSMutex and refreshes its interface to remove methods
that are unused except in tests.
TSMutex has a generic parameter State that supports non-sendable and
non-copyable values. UnfairLock is a type alias of TSMutex<Void>.
The withLock() function is also no longer inherited from NSLocking, instead
being implemented to be similar to OSAllocatedUnfairLock's API.
Finally, the class is audited for sendability and compiles without warnings
under strict concurrency checking.
2024-11-15 16:31:03 -05:00
Harry
21127020ec
Move chatId assignment to after failable steps
2024-11-15 13:24:58 -08:00
Harry
1ca7c961d1
Resolve race in TaskQueueLoaderTest
2024-11-15 13:24:03 -08:00
Harry
fad98cc00e
Archive Contact recipients for TSContactThreads without SignalRecipients
2024-11-15 13:23:50 -08:00
Sasha Weiss
1be742f639
Drop ObjC from KeyValueStore
2024-11-15 09:17:55 -08:00
Harry
4201f8b1fd
Don't even trigger backup upload job for free tier users
2024-11-15 10:02:44 -06:00
Marissa Le Coz
f70a70a277
Add comment for why chat_item_group_change_chat_update_36/37 are disabled
2024-11-14 17:27:24 -05: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
ac36551fe5
Require identity key prefix on backup export and import
2024-11-14 13:18:55 -08:00
Harry Sanabria
41e9d3e85e
Add logging for other validator errors
2024-11-14 10:40:05 -08:00
Marissa Le Coz
7455e2cf6d
Add most group change chat update backup tests
2024-11-14 13:08:24 -05:00
Harry
b62ed1e85c
Report progress for backup import/export
2024-11-14 08:57:00 -08:00
Harry
abd68d89a9
Update backup proto with view once quote type
2024-11-14 08:55:47 -08:00
Harry
0833ec0042
Update backup proto with contact identity key field(s)
2024-11-14 08:55:03 -08:00
Elaine
aefb384f57
Device linking redesign
2024-11-13 19:03:28 -07:00
Harry Sanabria
b62e7da708
Drop voiceMessage flag on backed up messages with text
2024-11-13 16:02:33 -08:00
Harry
d72edeea62
Add rudimentary link'n'sync confirmation sheet
2024-11-13 15:45:44 -08:00
Harry
7f76a8fe71
Update backup proto with newly-optional fields (and some comment updates)
2024-11-13 11:42:57 -08:00
Max Radermacher
36bdb6a570
Rename variables that don’t store group IDs
2024-11-13 11:36:00 -06:00
Harry
7562e4ce86
Add MessageBackup.LogLevel to suppress warnings
2024-11-12 14:24:30 -08:00
Harry
8b7932281d
Handle negative angle for chat color gradient
2024-11-12 14:11:10 -08:00
Harry
44770cef3d
Add retrying to MessageBackupAvatarFetcher
2024-11-12 13:29:36 -08:00
Harry
60592ed3b3
Remove unimplemented backup error case
2024-11-12 13:22:06 -08:00
Harry
13f9fe73c0
Don't download quote thumbnails when we have the target message locally
2024-11-12 11:06:32 -06:00
Harry
b1d31ff72c
Use failable insert methods everywhere possible in backups
2024-11-12 07:35:44 -08:00
Harry
7591e35fd2
Restore group and contact avatars after backup restore
2024-11-11 17:30:05 -08:00
Pete Walters
2305acfac3
Clean up MessageBackupAuthCredentialManager
2024-11-11 16:03:41 -06:00