Commit Graph

40 Commits

Author SHA1 Message Date
Adhiraj Singh 59f834ca39 fix: handle receipts more accurately
1. only send timestamp with read receipts
2. use unix timestamp in seconds instead of millis
3. use "sender" receipts for own messages
2022-04-03 11:27:13 +05:30
Adhiraj Singh 64bab02b7c fix: patch proto sync receipts 2022-04-03 00:15:06 +05:30
Adhiraj Singh 8addc714c7 feat: add more receipt types 2022-04-02 15:44:22 +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 f7f86e69d6 chore: update log 2022-01-16 16:03:22 +05:30
Adhiraj Singh 6a2cb5a413 refactor: message decoding
1. removes redundant receipt (was exactly the same as delivery receipt without the timestamp)
2. decodeWAMessage now returns a proper message struct
3. each message stanza results in exactly one message decoded
2022-01-07 00:04:17 +05:30
Adhiraj Singh 9d7aec11da feat: add more logging to media 2021-12-19 14:35:51 +05:30
Adhiraj Singh c803e22e8a feat: functional legacy socket 2021-12-17 20:58:33 +05:30
Adhiraj Singh be0e2210d9 Merge branch 'multi-device' into multi-device-legacy 2021-12-17 19:28:00 +05:30
Adhiraj Singh 19a9980492 feat: add legacy connection 2021-12-17 19:27:04 +05:30
Adhiraj Singh ed30e368ad fix: tsc error 2021-12-17 11:16:49 +05:30
LyFE ca12da6269 fix updateBlockStatus,fetchPrivacySettings (#1034)
* fix updateBlockStatus

* fix fetchPrivacySettings

* Update chats.ts
2021-12-16 23:49:48 +05:30
Adhiraj Singh 9474017930 feat: async import got wherever required 2021-12-16 00:38:53 +05:30
Adhiraj Singh d15dd6e1d2 feat: add "direct_path" to media messages 2021-12-13 17:31:20 +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 792c4bf0a4 feat: add custom host names 2021-12-11 11:32:12 +05:30
LightningNeko e20e479d74 fix waiting for this message (#966) 2021-12-05 01:47:14 +05:30
Adhiraj Singh 78fd72c8e5 feat: implement message retry handling
so if a message fails to decrypt on the other user's end -- it can be retried
2021-12-04 13:47:24 +05:30
HUGEIT 903871d180 potential fix for QR scan. the server may expect these messages to be sent on reconnect after scan (#959)
* potential fix for QR scan. the server may expect these messages to be sent on reconnect after scan.

* refactor: extract dictionary reduce code into utility

* refactor: convert the props + abt send req to somewhat useful query

Co-authored-by: Adhiraj Singh <adhirajsingh1001@gmail.com>
2021-12-03 18:40:26 +05:30
Adhiraj Singh d9cfed64ff fix: bad request on sending messages in some cases
Issue source found out by @jackcokk
2021-12-03 15:20:17 +05:30
Adhiraj Singh 6786576d13 style: fix indentation 2021-11-26 10:30:59 +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
lyfe00011 2641474c5a prepareWAMessageMedia option (#880) 2021-11-19 18:39:31 +05:30
Adhiraj Singh 3e54741042 feat: cache media uploads 2021-11-10 19:22:00 +05:30
Adhiraj Singh dee815448b feat: cache user devices 2021-11-07 19:51:14 +05:30
Adhiraj Singh 609c925225 fix: delivery receipts 2021-11-06 16:58:46 +05:30
Adhiraj Singh 5a33fd85a4 fix: read receipts 2021-11-06 15:41:49 +05:30
Adhiraj Singh d3b7ffecf2 code cleanup 2021-10-11 09:36:17 +05:30
Adhiraj Singh cacbaa37f2 exclude my device from message send 2021-10-09 19:29:10 +05:30
Adhiraj Singh e6bc1916c2 Update messages-send.ts 2021-10-05 19:09:23 +05:30
Adhiraj Singh 601c793fcd dont emit delete msg events 2021-10-05 17:56:57 +05:30
Adhiraj Singh 063803ae1b delete message fix 2021-10-05 15:51:14 +05:30
Adhiraj Singh e84002d807 add emitOwnEvents 2021-10-01 13:46:19 +05:30
Adhiraj Singh fdfe310fdf implement encrypting app patches 2021-09-28 19:22:39 +05:30
Adhiraj Singh 85d4644ac6 fix message not relayed to self 2021-09-27 12:52:42 +05:30
Adhiraj Singh a1aa17bc35 fix msg id override not being respected 2021-09-26 22:36:07 +05:30
Adhiraj Singh 192f8705a7 respect message ID 2021-09-26 18:04:53 +05:30
Adhiraj Singh f267f27ada finalize multi-device 2021-09-22 22:19:53 +05:30