Commit Graph

70 Commits

Author SHA1 Message Date
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