Commit Graph

9778 Commits

Author SHA1 Message Date
Harry
4ce5fbd7d9
Remove unsafe message getter from UnpreparedOutgoingMessage 2024-03-29 14:49:27 -05:00
Pete Walters
3ea62d8fc4
Add some logging around paymentAddressData and profile updates 2024-03-29 13:55:50 -05:00
Harry
f7b9b6f8bc
Be more efficient fetching all attachments for a message 2024-03-29 11:42:11 -07:00
Harry
164f19cfbe
Extend AttachmentDataSource to include copying existing attachments 2024-03-29 11:41:13 -07:00
Harry
600daabd6f
Build outgoing contact avatars using TSResourceManager 2024-03-29 11:36:11 -07:00
Harry
0e24aa35ff
Add edit message as an explicit type in the new message send preparers 2024-03-29 11:24:18 -07:00
adel-signal
eeb0658bb1
calling: update 1:1 calls to use new calling/relays endpoint 2024-03-28 10:59:08 -07:00
Jordan Rose
8f3b28c09c OWSChatConnection: percent-encode websocket request paths
The server decodes percent-escapes within these paths, so we should
leave them encoded, as URL provides by default.
2024-03-28 10:45:17 -07:00
Harry
71f06fc3c2
Remove OutgoingMessagePreparer from MessageSendJobQueue 2024-03-28 10:38:12 -07:00
Harry
03c726e99b
Use PreparedOutgoingMessage for sticker sends 2024-03-28 10:37:36 -07:00
Harry
b8c55601dd
Update a few simple callsites to use PreparedOutgoingMessage 2024-03-28 10:37:00 -07:00
Harry
4059335aac
Use PreparedOutgoingMessage for all transient message enqueuing 2024-03-28 10:36:24 -07:00
Harry
4119d9bd26
Use PreparedOutgoingMessage for gift badge sends 2024-03-28 10:35:42 -07:00
Harry
80961fc4d3
Use PreparedOutgoingMessage for contact share sends 2024-03-28 10:34:59 -07:00
Harry
0236ac4491
Use new PreparedOutgoingMessage in attachment multisend 2024-03-28 09:51:44 -07:00
Harry
038a5f0ac0
Accept PreparedOutgoingMessage in MessageSenderQueue 2024-03-28 09:50:02 -07:00
Harry
83e5d80dce
[RFC] Add (Prepared/Unprepared)OutgoingMessage definition 2024-03-28 09:26:59 -07:00
Max Radermacher
413e1411be
Call modern function for country names 2024-03-28 03:01:56 -05:00
Max Radermacher
2c1b883f5f
Don’t swallow profile decryption errors 2024-03-28 02:24:58 -05:00
Max Radermacher
2c2edb695a
Add checks for malformed payment addresses 2024-03-27 15:40:39 -05:00
Jordan Rose
2a01cbb2db Simplify IPv6 regex to accept invalid IPv4 addrs (like 900.000.01.1)
This is consistent with our handling of standalone IPv4 addresses,
which uses an even looser regex.
2024-03-27 12:45:10 -07:00
Jordan Rose
d0ef16998d Treat "0 bytes free" as "unknown", not "critically low on memory" 2024-03-27 11:51:53 -07:00
Jordan Rose
3df4d465fe Remove AtomicLock; it was just a simple wrapper around UnfairLock 2024-03-27 10:57:32 -07:00
Jordan Rose
e7068066c8 Fix unsafe @Atomic property wrapper 2024-03-27 10:57:32 -07:00
Jordan Rose
2727a70b90 Make AtomicValue's lock-sharing explicit
Also:
- Remove AtomicUInt's @objc, it's no longer used from ObjC
- Remove Codable conformances, they would implicitly use shared locks
  and weren't used in practice
2024-03-27 10:57:32 -07:00
Max Radermacher
0d8166682d
Run clang-format on SignalServiceKit/ files 2024-03-27 12:27:06 -05:00
Max Radermacher
e10faa8593
Remove src/ prefix from SignalServiceKit files 2024-03-27 12:22:52 -05:00
Sasha Weiss
c21511e52f
Add comments, organize, and standardize spacing in Groups.proto 2024-03-27 10:17:02 -07:00
Max Radermacher
be4cada92d
Clean up some info lines 2024-03-27 12:08:43 -05:00
Harry
f8213ccb38
Put the story message row id on OutgoingStoryMessage 2024-03-27 13:05:23 -04:00
Elaine
1a5bacd220
Create Nicknames View Controller 2024-03-27 10:38:03 -06:00
Harry
7f3ff959fb
Dont save OutgoingGroupUpdateMessage 2024-03-26 16:45:34 -07:00
Max Radermacher
517de6a9bd
Clean up some debug/verbose lines 2024-03-26 16:37:23 -05:00
Sasha Weiss
a1d91d8392
Rename isPlaceholderModel on TSGroupModel 2024-03-26 14:29:54 -07:00
Jordan Rose
377c340aa8
Asyncify ChatConnectionManager.makeRequest(_:) 2024-03-26 13:48:51 -07:00
Harry
9aa258b58c
Remove unneeded objc declarations on methods 2024-03-26 13:28:09 -07:00
Harry
8090e47a73
Use an explicit enum on MessageSenderJobRecord 2024-03-26 13:26:47 -07:00
Sasha Weiss
16f85e8a8a
Do away with UpsertGroupResult 2024-03-26 12:42:17 -07:00
Sasha Weiss
a6ad2a5c58
Remove the custom isEqual(_:comparisonMode:) from TSGroupModel 2024-03-26 12:41:45 -07:00
Sasha Weiss
0aeffe41d3
Remove always-true method param 2024-03-26 12:40:44 -07:00
Marissa Le Coz
257ca1b75b
Enable pip changes for Prod 2024-03-26 09:38:42 -07:00
Pete Walters
43901289ca
Decrypt/unzip backup files 2024-03-26 09:23:56 -05:00
Harry
1e1487b6bd
Use TSResourceStore everywhere for Story message attachments 2024-03-25 21:10:12 -07:00
Harry
2b23e1e38f
Separate DraftQuotedReplyModel from QuotedReplyModel 2024-03-25 21:09:39 -07:00
sashaweiss-signal
da4dd3dc0c Return nil instead of .unknown in early-exit from getOrCreateThreadForGroupChanges 2024-03-25 16:03:44 -07:00
Jordan Rose
95776b610f ChatConnectionManager: only expose state of identified connection
Nobody was using the unidentified connection, and also we expect the
unidentified connection to be allowed to go idle in a way the
identified one does not.
2024-03-25 14:20:58 -07:00
Jordan Rose
d84825a664 Remove OWSHTTPErrorWrapper
This was only used to bridge to ObjC, and all users are now in Swift.
2024-03-25 14:20:58 -07:00
Jordan Rose
18bcd5a635 OWSChatConnection: simplify RequestInfo helper class
- It's private, so none of its members need to be public.

- Having separate didSucceed and didFail methods results in
  duplication on the caller side. (This will be more important soon.)
2024-03-25 14:20:58 -07:00
Jordan Rose
53f12dff89 Don't check app expiry in OWSChatConnection, leave it to HTTPUtils
This was effectively being checked three times instead of just once.
2024-03-25 14:20:58 -07:00
Jordan Rose
ee5c0e37b8 Remove init from SSKWebSocket protocol
Web sockets are always constructed by a factory that knows what
concrete type is being instantiated.
2024-03-25 14:20:58 -07:00