Commit graph

579 commits

Author SHA1 Message Date
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
Scott Nonnenberg
7c1f186c05
sendToGroup: Don't fail send if we get 401 from multi_recipient/ request 2023-01-20 17:50:34 -07:00
Evan Hahn
7f0ed2599d
Percent-encode URL path when reporting spam 2023-01-19 11:53:04 -08:00
Josh Perez
86488b97b9
Adds debugging utilities in dev/beta environments 2023-01-18 19:02:03 -05:00
Fedor Indutny
ac50af52d2
Unsupported OS Dialog 2023-01-18 15:31:10 -08:00
Scott Nonnenberg
4a3ffe07e8
sendToGroup: 404 from multi_recipient endpoint now treated differently 2023-01-13 14:01:47 -08:00
Josh Perez
9374832ea4
Enables ContextIsolation 2023-01-12 16:24:59 -08:00
Fedor Indutny
63509b8965
Add extra logging to TaskWithTimeout 2023-01-12 14:00:50 -08:00
Fedor Indutny
19279cfebd
Support esnext in storybook 2023-01-12 12:58:53 -08:00
Scott Nonnenberg
0b39ff8b5f
Reactions: isSentByConversationId is only for reactions from this device 2023-01-12 12:29:04 -08:00
Jamie Kyle
e5638c0b20
Call Disposition 2023-01-09 16:52:01 -08:00
Josh Perez
235a188291
Always download link preview image 2023-01-06 16:55:12 -08:00
Dimitris Apostolou
3c80272673 Fix typos 2023-01-03 13:02:01 -08:00
Jamie Kyle
3705b959d6
Remove end year from licenses 2023-01-03 11:55:46 -08:00
Fedor Indutny
dec23725e5
Use ReadonlyArrays in conversation model and redux 2022-12-21 16:07:02 -08:00
Fedor Indutny
ecbf84638d
Increase max attempt count for unprocessed items 2022-12-21 16:06:50 -08:00
Fedor Indutny
ed271d92ea
Add no-misused/floating-promises lint rule 2022-12-21 10:41:48 -08:00
Fedor Indutny
57eed10a38
Add "pni" capability in staging 2022-12-20 12:29:17 -08:00
Fedor Indutny
d608b81292
Simplify sticker upload 2022-12-15 13:47:38 -08:00
Scott Nonnenberg
a49a6f2057
Notifications for a few merge-related scenarios 2022-12-05 14:46:54 -08:00
Alvaro
78ce34b9d3
Removed gv1-migration 2022-12-05 09:42:13 -08:00
Jamie Kyle
6198b02640
Init payments message types 2022-11-30 13:47:54 -08:00
Fedor Indutny
37d383f344
Improve story DOE flow 2022-11-28 18:07:26 -08:00
Scott Nonnenberg
a8ce959405
Use implicit content hint for sender key distribution messages 2022-11-28 15:30:42 -08:00
Scott Nonnenberg
ca638dd44f
Ensure that media messages are cached when loaded from convo settings 2022-11-28 14:40:22 -08:00
Alvaro
b720ed7bd5
Added story identifier when debug logging
Co-authored-by: Jamie Kyle <jamie@signal.org>
2022-11-28 14:34:49 -08:00
Alvaro
4294429bc2
Made StoryDataType sourceDevice required 2022-11-23 12:52:36 -08:00
Fedor Indutny
991580a1ed
Improve error handling during group sends 2022-11-22 10:43:43 -08:00
Fedor Indutny
f0a3735ca2
Handle new rate limiting info from CDSI 2022-11-22 10:13:55 -08:00
Fedor Indutny
b26f60d2fc
Better handling of calling messages 2022-11-19 00:31:31 -08:00
Fedor Indutny
5e1169bec3
Fine-grained session control for node-fetch 2022-11-19 00:14:20 -05:00
Fedor Indutny
98ef4c627a
Update eslint to 8.27.0 2022-11-17 16:45:19 -08:00
Josh Perez
cf43726664
Populate sender state correctly via story sync to group 2022-11-17 11:59:00 -08:00
Fedor Indutny
6be69a7ba8
Use DurationInSeconds for expireTimer 2022-11-16 13:18:02 -07:00
Fedor Indutny
e6ebfe4fca
Update typescript to 4.8.4 2022-11-14 11:35:37 -08:00
Alvaro
9de31d1b1c
Allow receiving group stories from senders with profileSharing=false 2022-11-09 14:53:19 -08:00
Fedor Indutny
d7a2669b49
Wrap eventHandlerQueue jobs with task with timeout 2022-11-09 10:59:32 -08:00
Josh Perez
19a42ed719
Onboarding story 2022-11-08 21:38:19 -05:00
Fedor Indutny
9ce8d5e68f
Fix storage service handling of contact status 2022-11-07 15:21:12 -08:00
Josh Perez
64fa3aac59
Use explicit allowlist setting for story receive 2022-11-02 16:56:17 -04:00
Fedor Indutny
8f62442822
Allow link-only stories, download previews 2022-10-31 14:28:28 -07:00
Fedor Indutny
7f0a66847b
Remove LegacyCDS 2022-10-26 16:17:14 -07:00
Fedor Indutny
3beccbfd31
Reduce timeout of some long running tasks 2022-10-25 17:03:05 -07:00
Scott Nonnenberg
5dea03f713
Include story=true when deleting your story for everyone 2022-10-20 15:10:10 -07:00
Scott Nonnenberg
1c89168301
Phased rollout by country code; starting w/ desktop.stories remote flag 2022-10-20 14:02:22 -07:00
Fedor Indutny
b82234b119
Update Intel advisories for Legacy CDS 2022-10-20 11:52:32 -07:00
Fedor Indutny
f5e94f2069
Use correct endpoint to lookup by username 2022-10-19 13:41:47 -07:00
Fedor Indutny
00f82a6d39
Discriminator in username 2022-10-18 10:12:02 -07:00
Scott Nonnenberg
4ec48df5b9
Additional work to include story=true on send 2022-10-07 10:02:08 -07:00
Josh Perez
3bfeffe502
Handle storyMessageRecipient updates before handling story messages 2022-10-07 09:30:54 -07:00
Scott Nonnenberg
5e63d8aadf
Pipe device number through for sync'd sent story messages 2022-10-05 13:49:43 -07:00
Evan Hahn
5219cdf2c9
Make 1 the minimum registration ID 2022-10-05 09:35:56 -07:00
Fedor Indutny
e20ec013f5
Provide pni registration id in createAccount 2022-10-04 17:50:07 -07:00
Fedor Indutny
ebafc933b9
Use X-Signal-Receive-Stories header 2022-10-04 17:48:25 -07:00
Fedor Indutny
8b705d3b55
Sync storiesDisabled flag on AccountRecord 2022-10-04 10:53:36 -07:00
Scott Nonnenberg
2b2594c20a
Stories: Fix sender key persistence, pipe story: true into sends 2022-09-30 09:59:36 -07:00
Fedor Indutny
373f121887
Extend cleanSignedPreKeys to support PNI 2022-09-27 09:33:56 -07:00
Fedor Indutny
59da9c7ae5
Stop using deprecated PniCredential 2022-09-21 09:18:48 -07:00
Fedor Indutny
e0ae5fc27c
Wait for contact sync in MessageReceiver 2022-09-20 16:53:38 -07:00
Jamie Kyle
eb10aafd7c
tsc:allowUnreachableCode, eslint:no-unreachable, assert->assertDev 2022-09-15 13:17:15 -06:00
Fedor Indutny
e3f418105b
Improve challenge handling 2022-09-14 17:31:37 -07:00
Jamie Kyle
0086216c9d
Add eqeqeq rule but require == for null 2022-09-14 14:40:44 -07:00
jamiebuilds-signal
64a4d2e717
Improved reliability of strictAssert 2022-09-14 09:40:50 -07:00
jamiebuilds-signal
5a8f484a03
Enable brace-style eslint rules 2022-09-13 14:48:09 -07:00
Scott Nonnenberg
8899ca9724
Improve logging in handleDataMessage and contact sync 2022-09-12 17:52:55 -07:00
Scott Nonnenberg
380833447f
Stories: Don't drop 1:1 replies, always 24-hour expireTimer 2022-09-09 18:05:07 -06:00
Evan Hahn
aa86d8bf82
Lint .d.ts files 2022-09-06 13:51:34 -07:00
Scott Nonnenberg
6dd2b73855
Storage/getItemsState: Warn if not ready, log on success as well 2022-09-01 18:05:47 -07:00
Fedor Indutny
dda21701c5
Pass proxyUrl to LegacyCDS 2022-08-31 13:45:58 -07:00
Fedor Indutny
7632f31cf2
Show internal error toast on CDS errors 2022-08-30 17:03:42 -07:00
Evan Hahn
39354b11b7
Prefer type to interface in .d.ts files 2022-08-30 16:24:04 -05:00
Fedor Indutny
c42df6312e
contactSync should depend on syncMessage.complete 2022-08-26 15:26:38 -07:00
Fedor Indutny
7ce4beb270
Refactor contact sync processing 2022-08-24 22:04:42 -07:00
Fedor Indutny
6e3ec163dc
Drop pnpChangeNumber capability 2022-08-24 09:34:00 -07:00
Fedor Indutny
c18fa35354
Remove unused CDSH code 2022-08-23 09:38:46 -07:00
Josh Perez
0fb45f045d
Handle Safety Number changes while sending a story 2022-08-19 14:05:31 -04:00
Fedor Indutny
d036803df9
Mirror CDS requests 2022-08-18 17:31:12 -07:00
Fedor Indutny
757af2cbbe
Include ACI+Access Keys pairs with CDSI requests 2022-08-18 13:44:53 -07:00
Josh Perez
5ec78374d1
Use just the timestamp for story expiration 2022-08-17 10:56:41 -07:00
Fedor Indutny
647335086d
Use ourPni when creating our own contact 2022-08-16 16:52:34 -07:00
Scott Nonnenberg
932043c58f
Make attachments more resilient, decrease websocket keepalive 2022-08-16 16:49:47 -07:00
Fedor Indutny
00cfd92dd0
Send and receive PniSignatureMessage 2022-08-15 14:53:33 -07:00
Fedor Indutny
68a0c44e19
Register pnpChangeNumber capability 2022-08-11 09:52:24 -07:00
Scott Nonnenberg
faf6c41332
Early preparations for PNP Contact Merging 2022-08-09 14:39:00 -07:00
Fedor Indutny
62962e4950
Support iasVersion 4 2022-08-08 18:09:44 -07:00
Scott Nonnenberg
fde917c983
A few fixes for the emoji bundled with stickers 2022-08-08 11:21:00 -07:00
Josh Perez
dca848389c
Sync stories sent to a group 2022-08-04 21:13:26 -04:00
Fedor Indutny
d8a7e99c81
Consistent log lines for WebAPI requests 2022-08-03 09:23:29 -07:00
Josh Perez
9eff67446f
Send text attachment stories 2022-08-02 15:31:55 -04:00
Fedor Indutny
2b0d3cab40
Remove source from Envelope 2022-08-02 09:19:21 -07:00
Scott Nonnenberg
2b648b79a4
Upgrade to libsignal-client v0.19.2 2022-08-01 18:31:24 -07:00
Josh Perez
3af478837d
Drop duplicate stories 2022-07-29 16:01:33 -07:00
Josh Perez
7d2b91368d
Normalize the distribution list and UUIDs iOS sends us 2022-07-29 13:16:36 -04:00
Scott Nonnenberg
08b2aeb237
Move back to libsignal-client v0.18.1 2022-07-29 09:17:59 -07:00
Fedor Indutny
79b48115e6 Handle PniChangeNumber 2022-07-28 14:50:10 -04:00
Josh Perez
1d5b361159
Drop incoming story messages if stories are turned off 2022-07-21 19:05:55 -04:00
Scott Nonnenberg
4cd05dc6c9
validateUnsealedEnvelope: On expire, log serverTimestamp vs. expiration 2022-07-20 17:15:26 -07:00
Fedor Indutny
5c2016ec40
Refresh PNI on startup 2022-07-18 15:32:00 -07:00
Josh Perez
5639c1adea
DOE for stories 2022-07-13 16:09:18 -07:00
Josh Perez
d7307934bc
Adjust some types 2022-07-12 17:37:21 -07:00
Scott Nonnenberg
14591358f1
Simplify expireTimer change handling, queue for contact sync 2022-07-11 17:32:26 -07:00
Fedor Indutny
a450e13a99
Fetch PNI group credentials 2022-07-08 13:46:25 -07:00
Josh Perez
3e644f45cf
Fixes story viewing behavior 2022-07-06 15:06:20 -04:00
Scott Nonnenberg
5fcf97b43b
Introduce logging for unexpected incoming urgent values 2022-07-05 15:20:30 -07:00
Scott Nonnenberg
06190b1434
Introduce new urgent property for outgoing messages 2022-07-01 09:55:13 -07:00
Josh Perez
9155784d56
Sync my stories with primary device 2022-06-30 20:52:03 -04:00
Scott Nonnenberg
101d53c4ea
getUUID: Return undefined if uuid is falsey 2022-06-27 17:37:56 -07:00
Scott Nonnenberg
4568527232
Increase backstop queue timeouts across the app 2022-06-27 09:46:43 -07:00
Scott Nonnenberg
72bb01346f
Check that size is number, not truthiness of size 2022-06-23 15:42:19 -07:00
Scott Nonnenberg
07ee7f46b7
Fix Gift Badge expiration 2022-06-21 18:17:17 -07:00
Fedor Indutny
35e5eb847a
Better logging for expiration timer updates 2022-06-20 15:43:16 -07:00
Josh Perez
d970d427f8
Create text stories 2022-06-16 17:48:57 -07:00
Fedor Indutny
973b2264fe
Add to group by username 2022-06-16 17:38:28 -07:00
Fedor Indutny
253e050262
CDSI Support 2022-06-14 18:15:33 -07:00
Scott Nonnenberg
2464e0a9c1
Convert signal.js and preload.js to Typescript 2022-06-13 14:39:35 -07:00
Evan Hahn
f50a6abe36
Remove unused eslint-disables 2022-06-03 14:07:51 -07:00
Scott Nonnenberg
e09d148c1d
On Sender Key distribution message failure, don't update send status 2022-06-02 14:25:55 -07:00
Evan Hahn
ab9a50357b
Convert libphonenumber utilities to TypeScript, removing unused ones 2022-06-01 10:48:16 -07:00
Scott Nonnenberg
68f705e6ad
Reset MessageReceiver processed count after reporting it 2022-05-25 11:15:09 -07:00
Scott Nonnenberg
a114e4e210
Gift Badges: A few tweaks 2022-05-16 12:54:38 -07:00
Scott Nonnenberg
dfd1190e8b
Groups: Show in left pane more often, proper join message 2022-05-16 07:53:54 -07:00
Scott Nonnenberg
0ba6a0926e
Support for incoming gift badges 2022-05-11 13:59:58 -07:00
Fedor Indutny
d6b58d23d6
Increment unprocessed attempts when fetching 2022-04-28 15:28:30 -07:00
Scott Nonnenberg
1d26424f22
Challenge: If no retry-after header on 428, don't start timer for retry 2022-04-25 16:05:23 -07:00