Commit graph

128 commits

Author SHA1 Message Date
Josh Perez
d7307934bc
Adjust some types 2022-07-12 17:37:21 -07:00
Scott Nonnenberg
06190b1434
Introduce new urgent property for outgoing messages 2022-07-01 09:55:13 -07:00
Scott Nonnenberg
2464e0a9c1
Convert signal.js and preload.js to Typescript 2022-06-13 14:39:35 -07:00
Scott Nonnenberg
16d180efac
Send just sync message if we've already sent to all recipients 2022-05-31 16:20:45 -07:00
Scott Nonnenberg
d446aa9e6b
Move to uuids for untrusted conversations needing verification 2022-05-31 12:46:56 -07:00
Fedor Indutny
3be95e821e
Pass abortSignal to sendToGroup 2022-05-23 15:08:13 -07:00
Fedor Indutny
5c72c785a0
Stop retrying message send on 400 response 2022-05-23 09:27:40 -07:00
Fedor Indutny
e69857fc13
Mark messages as failed when running out of time 2022-05-18 13:44:51 -07:00
Josh Perez
0ca66d6e95
Adjust story replies for direct conversations 2022-05-10 15:02:21 -04:00
Scott Nonnenberg
300cee2e24
JobQueue: If job data does not parse, delete it from database 2022-05-05 11:55:15 -07:00
Scott Nonnenberg
232004cdd1
sendNormalMessage: Only send just sync message in Note to Self, groups 2022-05-05 09:27:56 -07:00
Josh Perez
6d576ed901
Allow multiple reactions to stories 2022-04-28 18:06:28 -04: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
Scott Nonnenberg
4c1b27c150
sendProfileKey: Be resilient to more kinds of errors 2022-04-25 14:03:47 -07:00
Josh Perez
9973c661d0
Attach storyContext to group story replies 2022-04-22 11:45:45 -07:00
Chris Eager
2f5e4f1b98
Update message reporting to use sender ACI instead of E164 2022-04-12 12:54:04 -07:00
Scott Nonnenberg
8f630a52b5
Job Queue: Don't wait unless it's our first time in verify loop 2022-04-12 12:41:12 -07:00
Scott Nonnenberg
7f89f6162f
Disable forward for messages with embedded contact 2022-04-11 13:57:44 -07:00
Scott Nonnenberg
42bd8cb4ce
getUntrustedConversations: Ensure we return conversationIds 2022-03-29 17:14:01 -07:00
Fedor Indutny
ca3f8b7df0
Store receivedAtCounter separately for unprocessed 2022-03-24 14:28:56 -07:00
Scott Nonnenberg
bddd55d574
Challenge: Save conversationIds and start queues 2022-03-21 14:19:37 -07:00
Scott Nonnenberg
53ca6672a9
Timeline: Spacing and message selection tweaks 2022-03-17 14:20:40 -07:00
Josh Perez
2114c851c7
Include authorUuid when sending replies 2022-03-11 15:14:32 -08:00
Scott Nonnenberg
78fd36e880
Ensure that only messages with storyId have a StoryContext 2022-03-04 15:20:47 -08:00
Josh Perez
eb91eb6fec
Process incoming story messages 2022-03-04 13:14:52 -08:00
Scott Nonnenberg
0a52318be6
Delete for everyone: Track sends and show failure states 2022-03-04 11:22:31 -08:00
Fedor Indutny
8cc3605637
Fix generation of reaction ids 2022-03-02 15:39:51 -08:00
Scott Nonnenberg
71b2b6e30a
Conversation Queue: Fix conversationId added to untrusted list 2022-03-01 17:04:19 -08:00
Scott Nonnenberg
fc62fd4564
Don't send to blocked users 2022-02-24 18:40:56 -08:00
Jon Chambers
45289f519a
Accept HTTP/429 as a "rate-limited" status code 2022-02-24 16:26:58 -08:00
Scott Nonnenberg
b33b5d2a30
profileKey: Check length of incoming values, clear on failed send/fetch 2022-02-22 14:34:57 -06:00
Scott Nonnenberg
30783c887c
Introduce new conversationJobQueue 2022-02-16 10:36:21 -08:00
Scott Nonnenberg
0a18cc50bd
New queue for view once syncs, handleRetry improvements 2022-02-08 09:30:42 -08:00
Evan Hahn
884bfc0594
Properly handle read syncs while offline 2022-01-21 17:04:30 -08:00
Scott Nonnenberg
90356d4c0f
Move a number of sync messages to jobs for retry 2022-01-14 13:34:52 -08:00
Evan Hahn
0c12607e79
Fix "did reaction fully send?" logic 2022-01-11 16:50:11 -08:00
Evan Hahn
577d9a41cc
Log read sync and view sync timestamps 2022-01-06 16:14:16 -06:00
Evan Hahn
2f90608e1b
Improve "send anyway" experience when starting app 2022-01-04 14:24:18 -08:00
Scott Nonnenberg
60a53656af
Optimize a few queries 2021-12-20 22:04:02 +01:00
Evan Hahn
ed96e603ab
Wait for ConversationController load in receipt and sync jobs 2021-12-16 09:45:56 -08:00
Scott Nonnenberg
161b0e5379
Refactor sender key sends to allow distribution lists 2021-12-09 18:15:59 -08:00
Evan Hahn
f9e98836b0
Retry delivery and read receipts for up to 24 hours 2021-12-07 14:41:40 -08:00
Evan Hahn
ede34ecee3
Enable noImplicitOverride TypeScript compiler option 2021-11-12 15:44:20 -08:00
Evan Hahn
5619eeca83
Upgrade Prettier to 2.4.1 2021-11-11 16:43:05 -06:00
Evan Hahn
8256170066
Fix ConversationController load race condition 2021-11-04 14:11:47 -07:00
Evan Hahn
d6ffb08a63
Disable class-methods-use-this lint rule 2021-11-04 16:04:51 -05:00
Evan Hahn
562d15dd14
Don't enqueue viewed receipt jobs for outgoing messages 2021-11-03 12:02:26 -05:00
Evan Hahn
8670a4d864
Retry outbound reactions for up to a day 2021-10-29 18:19:44 -05:00
Evan Hahn
74fde10ff5
Prefer import type when importing types 2021-10-26 14:15:33 -05:00
Evan Hahn
95b761b62e
Log when message lacks sent_at or timestamp on send 2021-10-13 11:50:58 -07:00
Scott Nonnenberg
bd380086a4
Send related emoji along with Sticker, fix SendMessage types 2021-10-05 17:10:08 -05:00
Fedor Indutny
8d1ab9fd69
Consistent scheduling of sendToGroup 2021-09-27 11:29:06 -07:00
Evan Hahn
9791fa43ef
Improve handling of 413 HTTP responses 2021-09-27 09:44:09 -05:00
Fedor Indutny
4ef0bf96cc
Uint8Array migration 2021-09-23 17:49:05 -07:00
Fedor Indutny
b9d6497cb1
Better types for WebAPI 2021-09-21 17:58:03 -07:00
Josh Perez
65ddf0a9e8
Import log instead of using it off of window 2021-09-17 14:27:53 -04:00
Evan Hahn
57c41ad5f1
Log message send errors, if present 2021-09-10 13:13:45 -07:00
Evan Hahn
87747ebae2
Attach GV2 info to sync messages, if present 2021-09-10 10:02:55 -07:00
Evan Hahn
a3eed6191e
Ensure messages are sent in order, even with errors 2021-09-07 15:39:14 -05:00
Evan Hahn
0c741adbe4
Fix when outbound message expire timers are set 2021-09-07 11:36:19 -05:00
Evan Hahn
1f45bce0a2
When a job fails, respect the Retry-After header if applicable 2021-09-02 17:31:21 -05:00
Evan Hahn
01b015680b
Move getMessageById next to getMessagesById 2021-09-02 10:44:54 -07:00
Evan Hahn
a85dd1be36
Retry outbound "normal" messages for up to a day 2021-08-31 13:58:39 -07:00
Evan Hahn
41c78240fd
Handle null values in read sync jobs 2021-08-30 17:59:34 -05:00
Evan Hahn
853e27e9eb
Fix incorrect comment in JobQueue#add 2021-08-27 15:20:16 -05:00
Evan Hahn
9e9a815a2b
ESLint: allow for..of 2021-08-26 13:18:00 -05:00
Evan Hahn
f86f753df9
Add durations utility for computing durations 2021-08-26 09:10:58 -05:00
Evan Hahn
c6aa668a9b
Log errors when jobs fail 2021-08-25 16:58:33 -07:00
Evan Hahn
75f0cd50be
Send viewed receipt when you start listening to an audio message 2021-08-17 08:43:26 -07:00
Evan Hahn
b0750e5f4e
Show "unplayed" dot on incoming audio messages 2021-08-12 13:15:55 -05:00
Fedor Indutny
03874a788f
Use smaller batches for receipts and syncs 2021-07-29 18:08:04 -07:00
Evan Hahn
18140c4a9d
Retry outbound read syncs for up to 24 hours 2021-07-23 15:02:36 -07:00
Fedor Indutny
fdec47d637
Use single WebAPI instance across the app 2021-07-23 10:23:50 -07:00
Fedor Indutny
943bb38af1
Make JobQueue an abstract class 2021-07-21 16:10:08 -05:00
Fedor Indutny
8f5086227a
Enforce stronger types for ArrayBuffers and storage 2021-06-14 17:09:37 -07:00
Evan Hahn
d4dc9b8e39 Message Requests: Add new "Report spam and block" button 2021-05-27 13:37:58 -07:00
Scott Nonnenberg
e6f1ec2b6b
Send support for Sender Key 2021-05-25 15:40:04 -07:00
Evan Hahn
bbd7fd3854
Initial support for job queue 2021-04-29 18:02:27 -05:00