Sasha Weiss
9690fd8ed8
Add "message request accepted" info message
2024-08-16 15:29:22 -07:00
Sasha Weiss
fb5ee27c80
Add "blocked" and "unblocked" info messages
2024-08-16 15:28:37 -07:00
Ehren Kret
086b4abfa5
fix several warnings
2024-08-15 16:09:58 -05:00
Pete Walters
d81fe02845
Add AttachmentUploadStore
2024-08-15 11:14:00 -05:00
Pete Walters
f22154db54
Add AttachmentUploadRecord
2024-08-15 10:50:41 -05:00
Sasha Weiss
853bf45b8a
Split TSInfoMessage+Swift into extension files
2024-08-14 16:51:00 -07:00
Sasha Weiss
5b35301892
Enable the Backup comparator for chat update tests
2024-08-13 15:52:25 -07:00
Harry
e24bf938d5
Don't set width as height on outgoing attachment proto
2024-08-13 15:18:52 -07:00
Harry
40a0a48e0a
Ensure we assign the ref to quote thumbnail if we found a duplicate locally
2024-08-13 17:04:51 -05:00
Harry
7775a3b116
Properly update download state on every AttachmentDownloadManager path
2024-08-13 14:51:55 -07:00
Harry
b09e8cf9f6
Don't count attachments enqueued for later retry as downloading
2024-08-13 16:38:35 -05:00
Harry
f9775e04c1
Add some logging to attachment v2 downloads
2024-08-13 16:36:20 -05:00
Harry
53f72e2851
Touch owners after cancelling attachment downloads so the CV item reloads
2024-08-13 12:00:02 -07:00
Sasha Weiss
0d17a073e2
Enable ComparableBackup check in ExpirationTimerChatUpdate test
2024-08-13 10:53:06 -07:00
Sasha Weiss
6178a6a008
Enable LibSignal comparator for "contact" Backup tests
2024-08-13 10:42:45 -07:00
Max Radermacher
8cb662acf0
Asyncify Sender Certificate code
2024-08-12 14:12:48 -05:00
Max Radermacher
acf50c3559
Reformat code related to message requests
2024-08-12 11:46:41 -05:00
Harry
46bc0c28c1
Make cdn number optional for media tier attachment info
2024-08-09 10:12:29 -07:00
Harry
b3a118b800
Return enum errors instead of arbitrary throws when creating attachments from backups
2024-08-09 10:11:12 -07:00
Harry
98740e631f
Add method to create attachment pointers from backup protos
2024-08-09 10:10:31 -07:00
Harry
6cdfb04a2b
Add attachment params initializer for invalid backup attachment
2024-08-09 10:09:32 -07:00
Harry
64caaba99c
Enqueue backup attachment downloads at backup download priorities
2024-08-09 10:06:33 -07:00
Sasha Weiss
921bdf6c24
Add support for incoming message edits in Backups
2024-08-07 16:16:20 -07:00
Harry Sanabria
8dec43f72f
Fix broken rebase using since-deleted method
2024-08-07 16:01:03 -07:00
Harry
83ebf96c0d
Add media tier attachment download source enum cases
2024-08-07 15:43:38 -07:00
Harry
199a59583d
Add validation method for backup attachments (no digest)
2024-08-07 15:41:41 -07:00
Sasha Weiss
b1fdcf0dc7
Allow passing more message params through MessageEdits
2024-08-07 15:06:09 -07:00
Sasha Weiss
41d153bf6f
Refactor EditManagerImpl to improve clarity
2024-08-07 15:04:48 -07:00
Sasha Weiss
0afca3aec7
Add receivedAtTimestamp to message builders
2024-08-07 14:58:50 -07:00
Ehren Kret
99cb4b5ebe
remove toE164 method from PhoneNumber
2024-08-07 16:16:02 -05:00
Ehren Kret
fc350cb88a
convert PhoneNumber to swift
2024-08-07 16:16:02 -05:00
Sasha Weiss
fca19c0c78
Represent serverTimestamp as a UInt64 in IncomingMessageBuilder
2024-08-06 12:28:41 -07:00
Sasha Weiss
dc64d534ca
Avoid using inline default values in message builders
2024-08-06 10:33:33 -07:00
Sasha Weiss
7adc7d2d95
Use @objcMembers in message builders
2024-08-06 10:31:30 -07:00
Sasha Weiss
78ae578aa0
Use the withDefaults pattern for TSOutgoingMessageBuilder
2024-08-06 10:22:07 -07:00
Sasha Weiss
3cdf735b40
Pare down TSInteraction initializers
2024-08-06 10:06:20 -07:00
Ehren Kret
5c405b4981
convert ContactsManagerProtocol from objc to swift
2024-08-06 09:14:11 -05:00
Ehren Kret
5103a84e60
remove dead code
2024-08-05 16:07:20 -05:00
Ehren Kret
d708761bbc
replace Sha256DigestContext with SHA256 from CryptoKit
2024-08-05 12:29:18 -05:00
Ehren Kret
ba3ae61d5c
fix potential bug if .read(upToCount:) had read less than requested
2024-08-05 12:29:18 -05:00
Ehren Kret
3f04087244
replace Cryptography.computeSHA256Digest with CryptoKit.SHA256.hash(data:)
2024-08-05 12:29:18 -05:00
Ehren Kret
829b9cac7e
rename SHA256DigestContext to Sha256DigestContext
2024-08-02 09:29:55 -05:00
Harry
c3db84f39a
Don't download v2 attachments in the NSE
2024-08-01 14:51:19 -07:00
Ehren Kret
8db47c5f62
inline Cryptography.generateRandomBytes
2024-08-01 15:33:26 -05:00
Ehren Kret
557d6a67cc
migrate Cryptography over to swift
...
`srand` is not accessible in swift. Remove `srand` anyhow as anything
using `rand` for any actual randomness should be considered a bug in
need of fixing rather than viewing `srand` as an acceptable workaround.
2024-08-01 14:43:34 -05:00
Sasha Weiss
ca6758421c
Add doc comments for timestamp interaction properties
2024-08-01 12:39:59 -07:00
Ehren Kret
fa1cef674c
migrate Randomness to swift
2024-08-01 13:26:07 -05:00
Max Radermacher
0ed1f04b8d
Move E164/UUID handling in protobufs to callers
2024-08-01 12:18:13 -05:00
Sasha Weiss
5fa7a81444
Implement archive/restore for learned profile chat updates
2024-08-01 09:45:26 -07:00
Max Radermacher
5fa7eddd0b
Use the Aci type when handling gv2 messages
2024-07-31 18:30:02 -05:00