Commit Graph

18 Commits

Author SHA1 Message Date
Harry
83ebf96c0d
Add media tier attachment download source enum cases 2024-08-07 15:43:38 -07:00
Ehren Kret
3f04087244 replace Cryptography.computeSHA256Digest with CryptoKit.SHA256.hash(data:) 2024-08-05 12:29:18 -05:00
Jordan Rose
9c443d6073 Turn libsignal-net request shadowing back down to "low" for beta users
Since the threshold for reporting is an absolute count of errors,
eventually everybody on the "high" shadowing mode will see them.
Rather than make that tracking more complex right now, turn the
shadowing back down to "low", which only ever logs about issues and
does not ask the user to report them to us. We've already gotten
the signal we need.
2024-07-10 17:32:55 -07:00
Harry
bb083ca39c
Fold SignalCoreKit into SignalServiceKit
Co-authored-by: Adam Sharp <sharplet@signal.org>
2024-06-26 08:44:41 -07:00
Max Radermacher
32b7493c7c
Simplify ios.clientExpiration parsing 2024-06-25 13:39:36 -05:00
Jordan Rose
54e4f752c9 Add OWSAuthConnectionUsingLibSignal
This is a *subclass* of OWSChatConnectionUsingLibSignal, mainly
because the authenticated/identified connection really does have
capabilities the unauth/unidentified one does not, and splitting those
out makes it easier to see which are which.

For now each websocket connection, identified and unidentified, has
its own libsignal ChatService instance, even though ChatService is
designed to manage both connections together. Later on in the
migration it'll make sense to consolidate them, but under the existing
structure of OWSChatConnection this is the easiest way to manage their
lifecycles.

Controlled by new RemoteConfig flag
"ios.experimentalTransportEnabled.libsignalAuth" (and for local
testing, UserDefaults flag UseLibsignalForIdentifiedWebsocket).
2024-06-20 15:42:00 -07:00
Max Radermacher
91134254cb
Add RemoteConfig for callLinkJoin 2024-06-18 12:13:37 -05:00
Sasha Weiss
d193a937c8
Add a capability to enable sending DeleteForMe sync messages 2024-06-13 11:12:05 -07:00
Sasha Weiss
4a7be90003
Send support for DeleteForMe sync messages 2024-06-04 15:18:39 -07:00
Jordan Rose
58720baa80 Turn on "high" shadowing for unauth requests for beta users
This can still be overridden with the
ios.experimentalTransportEnabled.shadowingHigh remote config flag if
necessary.
2024-05-06 11:57:33 -07:00
Alex Konradi
f05c7fd129
Turn on libsignal CDSI lookup for all builds 2024-05-06 09:53:45 -04:00
Jordan Rose
4a0879eb78
Add OWSChatConnectionUsingLibsignal
The choice of whether or not to use this is controlled by a
RemoteConfig flag, ios.experimentalTransportEnabled.libsignal, but
because ChatConnectionManager is set up before RemoteConfig has even
loaded its cached settings, the flag is cached in UserDefaults, like
the shadowing kill switch setting.
2024-04-26 13:13:48 -07:00
Sasha Weiss
c26ad8a4e5
Add an "inactive linked device" megaphone 2024-04-24 11:28:33 -07:00
Jordan Rose
4afddfe93d
Add a RemoteConfig flag to turn off libsignal unauth request shadowing
It's not likely we'll need this, but just in case.
2024-04-22 10:00:54 -07:00
Max Radermacher
bc74ec3953
Tweak or remove redundant/noisy info lines 2024-04-16 19:37:25 -05:00
Jordan Rose
e8eed60d35 Shadow successful unauth chat requests with a libsignal request
This will help identify scenarios where libsignal is deficient
compared to the current implementation.
2024-04-04 14:43:31 -07:00
Jordan Rose
3df4d465fe Remove AtomicLock; it was just a simple wrapper around UnfairLock 2024-03-27 10:57:32 -07:00
Max Radermacher
e10faa8593
Remove src/ prefix from SignalServiceKit files 2024-03-27 12:22:52 -05:00