Commit graph

702 commits

Author SHA1 Message Date
Fedor Indutny
3eb0e30a23
Backup Server APIs 2024-04-22 16:11:36 +02:00
Sergey Skrobotov
9295096586
Make LibsignalWebSocketResourse an EventTarget 2024-04-18 15:01:16 -04:00
Sergey Skrobotov
df1240049a
Add a remote config option to disable libsignal transport in prod 2024-04-18 11:46:48 -07:00
trevor-signal
d31a4d5d91
Close websocket if request times out 2024-04-18 19:16:05 +02:00
trevor-signal
ec2a17a0e4
Ensure unauthenticated websocket reconnects if using LibSignal's transport 2024-04-18 19:00:16 +02:00
Fedor Indutny
97f5430541
Fix lazy creation of ProxyAgent 2024-04-17 16:13:15 -07:00
Scott Nonnenberg
783c71999a
Send call messages with conversationJobQueue
Co-authored-by: trevor-signal <trevor@signal.org>
2024-04-16 14:55:09 -07:00
Alex Konradi
6f92bcd86b
Request new ZKC-based auth credential 2024-04-16 12:49:21 +02:00
trevor-signal
fc02762588
Enable more specific AttachmentDownload prioritization 2024-04-15 17:11:48 -07:00
Fedor Indutny
87ea909ae9
Backup encryption and improvements 2024-04-15 22:54:21 +02:00
Sergey Skrobotov
3456f5e097
Prevent sending shadowing healthcheck on a closed connection 2024-04-12 15:08:16 -07:00
Fedor Indutny
4caa260a22
Update story gradients 2024-04-09 14:38:27 -07:00
Sergey Skrobotov
e388f13910
Upgrade libsignal-client to 0.44.0 and adopt API changes 2024-04-04 14:39:52 -07:00
trevor-signal
dfd564e67f
Simplify messageReceiver initialization & reset
Co-authored-by: Scott Nonnenberg <scott@signal.org>
2024-04-02 13:43:20 -07:00
adel-signal
94c7de6c65
calling: update getIceServers to use new turn routing endpoint
Co-authored-by: Adel Lahlou <adel@signal.com>
2024-03-29 10:17:56 -07:00
Sergey Skrobotov
cf02337d6d
remote config for making CDSI lookups via libsignal 2024-03-27 15:56:43 -07:00
trevor-signal
ff5ecd8bf3
Cleanup attachment download flow 2024-03-21 16:02:12 -04:00
Fedor Indutny
091b50c414
Lazy import proxy-agent 2024-03-20 11:05:10 -07:00
trevor-signal
83e8f4b59d
Add additional logging for attachment downloading 2024-03-20 11:23:31 -04:00
Fedor Indutny
60fa6a11ef
Better group call state management 2024-03-19 10:40:37 -07:00
Fedor Indutny
9aff86f02b
Simplify online/offline status management 2024-03-18 14:48:00 -07:00
trevor-signal
9ebdf6e399
Retain key for downloaded attachments 2024-03-18 11:38:52 -07:00
Fedor Indutny
6f4730b42c
Don't unlink on 4409 2024-03-18 10:08:36 -07:00
Fedor Indutny
d85a1d5074
Add preliminary message backup harness 2024-03-15 10:20:33 -04:00
Chris Eager
231bf91a22
Update ChallengeType 2024-03-14 14:16:09 -07:00
Sergey Skrobotov
9f40562b19
unauthenticated WebSocket via libsignal: shadowing mode
Co-authored-by: Scott Nonnenberg <scott@signal.org>
2024-03-14 14:08:51 -07:00
trevor-signal
ed94c11d08
Improve resiliency to excessive prekey generation 2024-03-13 18:07:29 -07:00
Fedor Indutny
1823f7eca9
Introduce outage network status
Co-authored-by: Scott Nonnenberg <scott@signal.org>
2024-03-12 12:52:02 -07:00
Fedor Indutny
e031d136a1
Include and process destinationPniIdentityKey 2024-03-11 18:08:38 -07:00
trevor-signal
711e321d16
Support larger sync messages in large groups 2024-03-11 21:08:28 -04:00
ayumi-signal
c332bd240f
Handle new sync message MarkedAsRead for Calls Tab 2024-03-11 11:18:55 -07:00
trevor-signal
cf381cd46c
Generate mediaName for backed-up attachments 2024-03-06 13:15:10 -05:00
Fedor Indutny
08eb4fc168
Run storage service on link 2024-02-28 17:48:11 -08:00
trevor-signal
55be00d689
Add timeout to avatar fetches and avoid blocking on profile syncs 2024-02-28 09:48:01 -08:00
ayumi-signal
96b3413feb
Basic call link join support 2024-02-22 13:19:50 -08:00
Jamie Kyle
a27890b988
Unlink on device conflict 4409 2024-02-21 12:33:56 -08:00
trevor-signal
604563a3b4
Prevent decryptAndCache jobs from delaying message sends 2024-02-20 17:31:03 -05:00
trevor-signal
4e1c52a155
Update behavior when receiving sync messages with isRecipientUpdate 2024-02-20 14:53:15 -05:00
Fedor Indutny
dd5b66039d
Further PNP fixes 2024-02-16 12:39:58 -08:00
Fedor Indutny
16dcf31906
Remove unused pre-PNP code 2024-02-16 14:49:48 -05:00
Fedor Indutny
943518dc3a
Fix MessageRequestResponse sync processing 2024-02-14 12:19:08 -08:00
Fedor Indutny
cd3d3dc8a6
Don't poll websocket on remote expiration 2024-02-14 10:37:47 -08:00
Fedor Indutny
9ad6d5b66b
Use libsignal-client for parsing crash reports 2024-02-13 13:41:48 -08:00
Fedor Indutny
fe14333e74
Fix case sensitivity of X-Signal-Timestamp regexp 2024-02-06 14:35:29 -08:00
Scott Nonnenberg
9a283909b0
Contact Sync: Properly drop contacts with invalid ACIs 2024-02-05 18:30:04 -08:00
Jamie Kyle
395c67f6c4
Refactor AttachmentCrypto 2024-02-05 15:17:28 -08:00
ayumi-signal
581594ae9a
Fix group updates for blocked users 2024-01-31 12:19:47 -08:00
Fedor Indutny
900b40381c
Test more contact splitting scenarios 2024-01-31 09:51:09 -08:00
Fedor Indutny
52736ea32e
Explicit checks for pniChangeNumber 2024-01-30 09:57:25 -08:00
Fedor Indutny
2b79a65e72
Remove unused query parameter 2024-01-25 15:21:06 -08:00
Fedor Indutny
2bc0e4755c
Upgrade Electron to 28.1.5
Co-authored-by: Fedor Indutny <238531+indutny@users.noreply.github.com>
2024-01-23 16:11:12 -08:00
Fedor Indutny
38914a45cb
Custom Discriminator in EditUsernameModalBody 2024-01-18 20:53:24 +01:00
Fedor Indutny
fa3937e084
Fix parsing of Retry-After 2024-01-17 15:23:41 -08:00
Alex Konradi
6dfef6e70d
Integrate libsignal-net CDSI lookup and make it accessible in debug builds 2024-01-17 13:57:03 -08:00
trevor-signal
a30f277276 Remove now-unnecessary data from prekey upload request
Co-authored-by: Fedor Indutnyy <indutny@signal.org>
2024-01-10 11:14:44 -08:00
Jamie Kyle
a60cf05f83
Fix wrong ringerId in auto-ended remote call 2024-01-03 20:19:08 +01:00
Fedor Indutny
d71da5c486
Support phone number sharing flag on profile 2024-01-02 20:36:49 +01:00
Jamie Kyle
5d578650b5
Add timestamp to doSendMessage log 2023-12-19 19:55:09 +01:00
Fedor Indutny
f8c4e392fe
Use createHTTPSAgent for all requests 2023-12-12 23:57:09 +01:00
trevor-signal
b7ab1d7207
Store plaintext hash with newly sent or received attachments 2023-11-17 15:02:02 -05:00
Scott Nonnenberg
48245eeea6
On send, pull data from target edit if sending edit 2023-11-17 13:16:48 -05:00
Scott Nonnenberg
d7177516c1
No more type passed to removeAllConfiguration; keep more UI keys 2023-11-13 17:01:27 -05:00
Fedor Indutny
f52da976f9
Compile protobufs with no-convert/null-defaults
Co-authored-by: Scott Nonnenberg <scott@signal.org>
2023-11-07 22:31:59 +01:00
Fedor Indutny
e8fdd7116b
Remove deprecated ContactDetails fields 2023-11-07 21:26:31 +01:00
Fedor Indutny
59fa75c309
Better check for empty storage/master keys 2023-11-07 01:38:51 +01:00
Jamie Kyle
3ef0d221d1
Refactor Signal app routing 2023-11-02 15:42:31 -04:00
Fedor Indutny
9206b9984b
Enable pni capability 2023-10-31 16:21:39 -07:00
akonradi-signal
87659ef2b5
Hold CDSI lookup ACI & UAK args in one array 2023-10-31 20:00:25 +01:00
Fedor Indutny
edd6ed5fab
Clear PNI signature flag on PNI change 2023-10-30 16:25:55 -07:00
Fedor Indutny
f1e8ffe720
Accept masterKey in ProvisionMessage 2023-10-30 21:31:39 +01:00
Scott Nonnenberg
99b2bc304e
Use streams to download attachments directly to disk
Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
2023-10-30 09:24:28 -07:00
Scott Nonnenberg
70cd073a72
Ensure that messages to initiate calls are marked urgent=true 2023-10-23 10:38:03 -07:00
Fedor Indutny
d7b53f3d27
Deprecate storageServiceKey in SyncMessage.Keys 2023-10-12 21:42:24 +02:00
Jamie Kyle
502ea174ab
Upgrade Storybook
Co-authored-by: Scott Nonnenberg <scott@signal.org>
2023-10-11 12:06:43 -07:00
ayumi-signal
064659657f
Use new endpoint for badge config 2023-10-06 14:31:17 -07:00
Fedor Indutny
ba1a8aad09
Retain cdn ids for attachments 2023-10-03 17:09:31 -07:00
Fedor Indutny
ca45a9cf74
Don't accept PNI as ACI in contact sync 2023-09-28 11:41:45 -07:00
Fedor Indutny
eb7942dd1e
Use untagged pnis in storage service 2023-09-27 16:14:55 -07:00
Fedor Indutny
654215e136
Fix format of pniSignature.pniBytes 2023-09-14 22:39:51 +02:00
Josh Perez
d0296ececa
Improvements to the media editor 2023-09-14 10:04:48 -07:00
Josh Perez
944a70abe7
DRY up the message receive timing validation 2023-09-12 16:12:07 -04:00
Fedor Indutny
56ba8fea4d
Support Happy Eyeballs in proxy-agent 2023-08-30 01:58:48 +02:00
Fedor Indutny
ccb5eb0dd2
Atomic linking 2023-08-28 17:41:32 -07:00
Scott Nonnenberg
cbd16b90bb
Resilience to failed PNI key upload, clean more key tables 2023-08-28 17:26:39 -07:00
Josh Perez
cc13350d3f
Bump up the edit send/receive timers to 24hr/48hr 2023-08-25 09:50:04 -04:00
Scott Nonnenberg
3339899684
Eliminate extra preKeys, fail early on key creation if no PNI identity key
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
2023-08-21 22:15:10 +02:00
Josh Perez
04f716986c
Do not confirm messages until we have handled them 2023-08-21 13:08:27 -07:00
Fedor Indutny
58aec8b1a3 Unlink on PNI identity key mismatch 2023-08-21 09:30:33 -07:00
Fedor Indutny
8b0da36caa Migrate schema to service ids 2023-08-21 09:30:33 -07:00
Fedor Indutny
71958f8a01 Attachment controller fixes 2023-08-21 09:30:32 -07:00
Fedor Indutny
deb1f9bd8d A few serviceId fixes
Co-authored-by: Scott Nonnenberg <scott@signal.org>
2023-08-21 09:30:32 -07:00
Fedor Indutny
366b875fd2 Introduce Service Id Types
Co-authored-by: Scott Nonnenberg <scott@signal.org>
2023-08-21 09:30:32 -07:00
Jamie Kyle
1eaabb6734
Calls Tab & Group Call Disposition 2023-08-08 17:53:06 -07:00
Scott Nonnenberg
3299b8f323
Remove obsolete capabilities, improve routine profile fetch 2023-08-08 01:12:57 +02:00
Josh Perez
d8ea785f4e
Do not confirm DOE or edit until it is processed 2023-08-07 09:36:37 -07:00
Jamie Kyle
bbd43b6e38
Implement read support for CDN3 2023-07-26 15:15:05 -07:00
Josh Perez
8aac997b4f
Removes groupv1 protos 2023-07-26 13:49:27 -04:00
Fedor Indutny
13193649d3
Use combined username link API 2023-07-21 01:19:32 +02:00
Fedor Indutny
e1d2dbd8ff
Username Link QR Code 2023-07-20 05:14:08 +02:00
Fedor Indutny
ba9f1a3e5e Support cds.disableCompatibilityMode 2023-07-19 16:21:33 -07:00
Scott Nonnenberg
9d03d9b59c Fix initial kyber key hydration; improve generation and logging 2023-07-19 16:21:31 -07:00
Scott Nonnenberg
b6445a6af0 Support for loading, storing, and using kyber keys in decryption 2023-07-19 16:21:30 -07:00
Fedor Indutny
c1580a5eb3 Add support for ACI safety numbers behind a feature flag 2023-07-19 16:21:30 -07:00
trevor-signal
60f7308dc8
Allow sends of quoted messages with attachments without thumbnails 2023-07-07 13:34:23 -07:00
Scott Nonnenberg
8177a4e2b3
MessageReceiver: Emit envelope event on queue for cached+decrypted items 2023-07-06 01:16:17 +02:00
Fedor Indutny
f90c2b7479
destinationServiceId in Sent 2023-06-29 21:17:27 +02:00
Scott Nonnenberg
7c5e6166ab
WebAPI: Increase default timeout to 30 seconds 2023-06-21 17:40:02 -04:00
Fedor Indutny
47c0cc053a
Enable TCP Keep-Alive on WebSockets 2023-06-21 12:05:44 -07:00
Scott Nonnenberg
65b6d9c2bc
Fix failover on failed sends, and improve logging 2023-06-20 17:06:38 -07:00
Scott Nonnenberg
efc237d106
Additional logging, more reliable contact/group sync fetch 2023-06-14 13:51:49 -07:00
Josh Perez
a255ac02c8
Adds logging to see what server timestamp is for edit messages > 24hr 2023-06-13 17:35:41 -07:00
Scott Nonnenberg
22fb69bbb7
Call refreshPreKeys on same cadence as rotateSignedPreKey 2023-06-08 18:08:24 -07:00
Fedor Indutny
7abd2280bc
Simplify WebSocket keepalive logic 2023-06-06 17:36:38 -07:00
Fedor Indutny
ab68e24805
Optimize debug logs by truncating CDN URLs
Attachments are end-to-end encrypted, and these lengthy URLs don't
provide any meaningful info for debugging purposes.
2023-06-01 11:28:16 -07:00
Fedor Indutny
b705609341
Fix edit message in Note to Self 2023-05-31 08:54:45 -07:00
Fedor Indutny
557b86f52e
Use electron's DNS resolver, prioritizing ipv4 connections 2023-05-30 16:57:16 -07:00
Fedor Indutny
1941a33556
Fix handling of replies on multiple dist lists 2023-05-25 14:12:33 +02:00
Fedor Indutny
759c61d06e
Use e164 from PniChangeNumber sync message 2023-05-22 09:37:58 -07:00
trevor-signal
73f4374e1e
Improved WS request timeout handling 2023-05-17 09:43:33 -07:00
Fedor Indutny
9a7f1e86e2
Fix sync message for editMessage 2023-05-11 08:47:41 -07:00
Fedor Indutny
22e1ff9b50
Drop support of PniIdentity sync message 2023-05-10 10:02:32 -07:00
Josh Perez
46942ece00
Send proper sync message for edit msg in all contexts 2023-05-09 18:25:37 -07:00
Scott Nonnenberg
b4caf67bf9
Allow copy/paste of formatting and mentions 2023-05-09 17:40:19 -07:00
Fedor Indutny
f1624705a7 Use new attachments API endpoint 2023-05-09 10:52:42 -04:00
Fedor Indutny
34baa0fa2f Fix check in MessageReceiver 2023-05-09 10:52:39 -04:00
Fedor Indutny
ca4aad6bad Extra toast for Message Receiver errors 2023-05-09 10:52:33 -04:00
Fedor Indutny
36b3e2de08 MessageReceiver improvements 2023-05-09 10:52:33 -04:00
Josh Perez
e211837bcd
Enables sandbox for all windows except main 2023-04-20 17:23:19 -04:00
Josh Perez
1f2cde6d04
Send edited messages support
Co-authored-by: Fedor Indutnyy <indutny@signal.org>
2023-04-20 09:31:59 -07:00
Scott Nonnenberg
850442bf2d
Consider all messages without contentHint, from us, to be resendable 2023-04-18 15:49:14 -07:00
Josh Perez
68ae25f5cd
Remove GroupContext proto
Co-authored-by: Scott Nonnenberg <scott@signal.org>
2023-04-14 17:52:50 -07:00
Scott Nonnenberg
9bfbee464b
Support for sending formatting messages 2023-04-14 11:16:28 -07:00
Scott Nonnenberg
4c9baaef80
Filter incoming bodyRanges, also filter before display 2023-04-11 17:16:46 -07:00
Jamie Kyle
76b9d07acf
Remove Signal.Util 2023-04-10 20:54:43 -07:00
Scott Nonnenberg
d9d820e72a
Support for receiving formatted messages
Co-authored-by: Alvaro Carrasco <alvaro@signal.org>
2023-04-10 09:31:45 -07:00
Jamie Kyle
0d4d43fbcf
Filter unknown call disposition event types 2023-04-06 09:34:52 -07:00
Jamie Kyle
f1a632263a
Log unknown field tags for sync messages we havent handled 2023-04-05 18:05:04 -07:00
Josh Perez
36e21c0134
Receive support for editing messages 2023-03-27 19:48:57 -04:00
Fedor Indutny
7e05893e1a
Fallback to dns.resolve4/6 on getaddrinfo failure 2023-03-21 17:43:55 -07:00
Scott Nonnenberg
5949cc11b1
Add all sends needed for retry to conversationJobQueue 2023-03-14 13:25:05 -07:00
Fedor Indutny
371c73377c
Move setVerified to conversation queue 2023-03-09 15:33:12 -08:00
Fedor Indutny
c038c07b06
Better way to throw websocket exceptions 2023-02-28 12:34:54 -08:00
Fedor Indutny
fad0529080
New sticker creator button 2023-02-27 14:34:43 -08:00
Fedor Indutny
5d110964b9
PNP Settings 2023-02-23 13:32:19 -08:00
Fedor Indutny
8ed13b2247
Username hashing 2023-02-08 09:14:59 -08:00
Fedor Indutny
486cbe0471
Support reporting token on envelope 2023-02-07 16:55:12 -08:00
Scott Nonnenberg
f3b68677b3
Use envelope.receivedAtDate when saving items to the cache 2023-02-06 09:35:14 -08:00
Alvaro
e51f582bfb
Removed hard limit on unprocessed messages in cache 2023-02-02 11:39:07 -08:00
Scott Nonnenberg
257f5e1231
MessageReceiver: handle sender key distro message included in any proto 2023-01-25 14:59:40 -08:00
Scott Nonnenberg
fbdfaf3962
Cancel in-flight attachment downloads on suspend/resume 2023-01-24 11:17:00 -08:00