Commit Graph

42 Commits

Author SHA1 Message Date
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
Adhiraj Singh
2b8256d56b feat: cleaner auth state management + store SK keys
!BREAKING_CHANGE
2021-12-11 17:54:38 +05:30
Adhiraj Singh
6e830c1e1b feat: enforce default timeout to prevent any hanging promises 2021-11-25 19:54:56 +05:30
Adhiraj Singh
b91a1cbcf3 fix: possible leak on waitForMessage 2021-11-25 19:51:49 +05:30
Adhiraj Singh
d523bf8981 feat: detect when multi-device beta not joined 2021-11-20 17:20:06 +05:30
Adhiraj Singh
3d0704a317 feat: cleaner auth state management
1. removes the "auth-state.update" event since it was bloated and fairly unnecessary
2. adds "creds.update" event that only sends the updated properties of the auth credentials
3. ensure the auth creds are not mutated anywhere, but only with the "creds.update" event
4. Separates the signal credentials from the auth credentials (kinda in progress)
5. in memory key store requires a save function to let one know when to save the keys

!BREAKING_CHANGE
2021-11-20 16:21:56 +05:30
Adhiraj Singh
c2c27a5dea fix: experimental patch to correctly identify end of offline notifications 2021-11-20 13:39:56 +05:30
Adhiraj Singh
7d174ca77b fix: "receivedPendingNotifications" not firing on zero offline notifications 2021-11-19 22:00:37 +05:30
Adhiraj Singh
49da0e4e71 fix: remove "connection.update" listener from ev instead of ws 2021-11-19 21:47:51 +05:30
Adhiraj Singh
9f196663e8 fix: logout error when not logged in 2021-11-19 16:25:17 +05:30
Adhiraj Singh
44059059d9 fix: remove need for firstQR in socket 2021-11-15 09:07:39 +05:30
Diego Araujo
bbf5bc96cc Fix retry receipt, fix assertingPreKeys, uploadPreKeys to 30, generate QR timeout and update example (#833)
* update example

* fix assertingPreKeys, uploadPreKeys to 30, generate QR timeout, sendRetryReceipt fix

* update example, change clear qr to event connection.update

* update example

* firstQR flag

* change checkConnection qr

* update example

* remove semis

* update example
2021-11-15 08:11:39 +05:30
Adhiraj Singh
3c6edde1d6 fix: listen to all failure messages 2021-11-08 13:22:25 +05:30
Adhiraj Singh
56c17ce0d1 feat: implement stream:error events 2021-11-08 00:18:12 +05:30
Adhiraj Singh
12eb181e37 chore: add open connection log 2021-11-06 09:25:37 +05:30
Adhiraj Singh
d3b7ffecf2 code cleanup 2021-10-11 09:36:17 +05:30
Adhiraj Singh
0c1045b55b emit undefined QR at start 2021-10-02 08:36:09 +05:30
Adhiraj Singh
070d4eebcc respect printQRInTerminal 2021-09-25 23:30:59 +05:30
Adhiraj Singh
89c819859b add waitForConnectionUpdate 2021-09-25 21:23:40 +05:30
Adhiraj Singh
f1527a9f6b separate out crypto utils 2021-09-23 22:37:33 +05:30
Adhiraj Singh
f267f27ada finalize multi-device 2021-09-22 22:19:53 +05:30