Commit Graph

70 Commits

Author SHA1 Message Date
Adhiraj Singh
d00aed7ff5 chore: timeout awaitNextMessage 2022-06-27 18:53:41 +05:30
Adhiraj Singh
eaf0f37d24 refactor: use event-buffer for state sync resyncs 2022-06-27 14:51:26 +05:30
Adhiraj Singh
7421f55daa feat: implement event buffer for offline msgs
!BREAKING_CHANGE

1. this allows all offline notifications to be combined into a batch -- to reduce the number of events being sent out
2. to enable the above, the "message.reaction" event has been made an array. Also removes the need for the "operation" field
3. have also now started processing all events under a single queue to prevent state sync problems
2022-06-27 13:38:29 +05:30
Adhiraj Singh
23acc1fb39 feat: extract code from WS error 2022-06-16 20:43:51 +05:30
Adhiraj Singh
26b286c98c chore: use Boom for WS errors 2022-05-31 21:36:11 +05:30
Adhiraj Singh
07f1f8c043 chore: use query to prevent redundant logs 2022-05-28 00:22:25 +05:30
Adhiraj Singh
ed557967d1 chore: make "auth" mandatory in SocketConfig 2022-05-25 12:13:17 +05:30
Adhiraj Singh
a8e209705a feat: add retry capability to SignalKeyStore 2022-05-22 20:52:21 +05:30
Adhiraj Singh
64a6070845 fix: use handshake timeout 2022-05-09 15:42:42 +05:30
Adhiraj Singh
3ac5eafc63 chore: more descriptive logging of connection close 2022-05-02 13:24:59 +05:30
Adhiraj Singh
fd9daf8ad3 refactor: remove redundant stream:error handling 2022-04-25 13:27:25 +05:30
Adhiraj Singh
9424d04f5d fix: catch promise rejection on presence update 2022-04-25 12:57:47 +05:30
Adhiraj Singh
211a899ed4 feat: handle stream:errors more gracefully 2022-04-25 09:11:03 +05:30
Adhiraj Singh
21f163d6cf fix: prevent duplicate frame emit 2022-04-23 12:20:18 +05:30
Adhiraj Singh
b3937b8852 chore: add logging to NS 2022-04-23 11:55:31 +05:30
Adhiraj Singh
c4ffb2bfaf Revert "chore: add WS ping"
This reverts commit f2bec6a1d1.
2022-04-22 19:17:53 +05:30
Adhiraj Singh
f2bec6a1d1 chore: add WS ping 2022-04-18 13:17:29 +05:30
Adhiraj Singh
fe9a6d07ae fix: browser version 2022-04-14 21:29:07 +05:30
Adhiraj Singh
e3cb822c08 chore: remove redundant log 2022-04-13 23:41:20 +05:30
Adhiraj Singh
b4fd010b36 refactor: use modified legacy bin XML parser instead of "WABinary" 2022-04-13 16:23:28 +05:30
Adhiraj Singh
7db8796fed feat: include platform in creds 2022-04-13 12:49:46 +05:30
Adhiraj Singh
564c9f2e86 chore: remove redundant headers 2022-04-13 00:10:24 +05:30
Adhiraj Singh
02265fd7f9 refactor: upload more pre-keys + use pure function 2022-04-13 00:02:10 +05:30
Adhiraj Singh
2c87bfae2c chore: remove useless log 2022-04-12 19:21:56 +05:30
Adhiraj Singh
37178547ba fix: better registration ID 2022-04-12 19:02:30 +05:30
Adhiraj Singh
75c637cf6c feat: remove need for "serverHasPreKeys" 2022-04-12 18:47:18 +05:30
Adhiraj Singh
5655ccaca7 fix: wait for pre-key upload 2022-04-12 17:07:04 +05:30
Adhiraj Singh
f4da9af5d3 chore: use only numbers in message tag 2022-04-12 17:04:24 +05:30
Adhiraj Singh
98c9af4acf feat: log fromMe messages in trace mode 2022-04-12 16:51:15 +05:30
Adhiraj Singh
8663598292 chore: log proto objects to prevent buffer arrays being printed 2022-04-02 15:44:51 +05:30
Adhiraj Singh
355b0664df feat: handle encrypt notification 2022-04-02 13:37:10 +05:30
Adhiraj Singh
ec6e904db4 refactor: process sync actions out of socket 2022-03-29 14:16:51 +05:30
Adhiraj Singh
89e35ec18a feat: use transaction when uploading prekeys 2022-03-29 13:41:41 +05:30
Adhiraj Singh
1635b1e756 refactor: cleanup MD socket initial connect code + log more 2022-03-24 20:33:55 +05:30
Adhiraj Singh
f82f5470cd feat: reset ping timeout on any frame recv
Credit to @HUGEIT for suggesting this
2022-03-24 13:25:23 +05:30
Adhiraj Singh
6637e32be9 fix: fire presence when name is recv 2022-03-24 10:18:28 +05:30
Adhiraj Singh
ba3cbd476e fix: correctly clear qrTimer 2022-03-24 10:13:57 +05:30
Adhiraj Singh
dc5015996f fix: send init queries in queue 2022-03-19 08:25:49 +05:30
Adhiraj Singh
13b0da0954 fix: catch unexpected errors on MD 2022-03-15 12:34:52 +05:30
Adhiraj Singh
2b10b7b18f chore: minor code cleanup 2022-03-14 19:38:01 +05:30
Deniz
a0e97458c6 Add a warning to make people aware of what they should do about the 'Restart Required' message. (#1329) 2022-03-08 13:59:40 +05:30
Adhiraj Singh
34781a51d3 chore: log browser when connecting 2022-03-07 19:44:36 +05:30
Adhiraj Singh
de7d1002a9 lint: stricter linting rules 2022-03-01 16:32:14 +05:30
Adhiraj Singh
8f11f0be76 chore: add linting 2022-01-19 15:54:02 +05:30
Adhiraj Singh
f61f553e01 chore: more unification of legacy APIs
1. unify waitForConnectionUpdate
2. unify printing QR in terminal
2021-12-18 22:18:51 +05:30
Adhiraj Singh
02dd8c93a6 chore: fix types 2021-12-18 19:56:58 +05:30
Adhiraj Singh
a723b50741 chore: add type distinguisher for sockets 2021-12-18 19:54:08 +05:30
Adhiraj Singh
19a9980492 feat: add legacy connection 2021-12-17 19:27:04 +05:30
Adhiraj Singh
5624ecf96c fix: throw connection closed instead of WS error 2021-12-12 11:18:21 +05:30
Adhiraj Singh
f284217d35 feat: implement transactions on auth state 2021-12-11 18:28:07 +05:30