Commit Graph

156 Commits

Author SHA1 Message Date
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
4112c68556 feat: expose sendRetryRequest 2022-01-16 15:33:26 +05:30
Adhiraj Singh
7bb6e3ceeb refactor: chats.set event 2022-01-16 13:02:38 +05:30
Adhiraj Singh
793b23cb21 refactor: history processing
1. fixes issue when some chats/messages are not synced
2. adds info about whether the history chunk is the latest
2022-01-16 12:51:08 +05:30
Adhiraj Singh
5febb86e14 fix: message delete not reflecting correctly for others 2022-01-08 23:01:55 +05:30
Adhiraj Singh
a0003f0fe9 fix: read receipts not being available 2022-01-07 21:24:46 +05:30
Adhiraj Singh
db6a02c4a5 chore: remove redundant log 2022-01-07 21:04:54 +05:30
Adhiraj Singh
d15bde5d17 refactor: app state handling
1. fixes snapshot patches not being included
2. fixes all mutations being passed when syncing from scratch
3. simpler chat mutation model
4. do not retry if key is not found
2022-01-07 14:29:52 +05:30
Adhiraj Singh
da65ae8f42 fix: do not update chat + contact on prepend messages 2022-01-07 13:55:26 +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
BochilGaming
0b5d772b08 Fix ContactsArrayMessage and add getBusinessProfile (#1074)
* Fix: ContactsArrayMessage and add getBusinessProfile

* delete package-lock.json

* edit readme.md

* add bussines hours

* make type same with leagcy

* revert
2022-01-06 22:15:52 +05:30
Adhiraj Singh
7ffa10a5c5 fix: delivery receipt 2022-01-06 15:11:33 +05:30
rafaelwedbiz
3534221e11 Fix Played Status (message update event) (#1089)
* Fix Played Status

* Update messages-recv.ts

Co-authored-by: Adhiraj Singh <adhirajsingh1001@gmail.com>
2021-12-29 12:00:35 +05:30
Adhiraj Singh
8c37ccf525 fix: tsc error 2021-12-23 10:12:29 +05:30
nanda
ee3486124d Fix: fetchBlocklist (#1042) 2021-12-22 22:48:40 +05:30
Adhiraj Singh
a9373fa0cd refactor: cleaner + faster app state sync 2021-12-22 21:37:39 +05:30
burstfreeze
98af4a6624 Fix #1010 by asking for full list of sync states when needed (#1043)
* Process patches that are longer.

* Fixed type declaration

* Changed resync behavior from recusive to iterative

* refactor: cleaner handling of hasMorePatches

Co-authored-by: Adhiraj Singh <adhirajsingh1001@gmail.com>
2021-12-22 20:57:58 +05:30
Adhiraj Singh
c87d8b8129 refactor: update chat modifications to be uniform across MD + legacy 2021-12-21 10:53:39 +05:30
Adhiraj Singh
677f50baaa feat: add contacts to chats.set event 2021-12-20 13:59:04 +05:30
Adhiraj Singh
dbed7fef74 chore: add profile picture timeout 2021-12-20 12:36:32 +05:30
LyFE
072706368c fix groupMetdata (#1049) 2021-12-19 22:10:18 +05:30
Adhiraj Singh
9d7aec11da feat: add more logging to media 2021-12-19 14:35:51 +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
e393f0f9a8 chore: make APIs similar for legacy + MD 2021-12-18 16:44:31 +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
ef1b01b6df fix: correctly handle retry from own devices 2021-12-14 00:31:29 +05:30
Adhiraj Singh
d15dd6e1d2 feat: add "direct_path" to media messages 2021-12-13 17:31:20 +05:30
Adhiraj Singh
a21e3b0bac perf: put main app state sync in transaction 2021-12-12 11:26:19 +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
792c4bf0a4 feat: add custom host names 2021-12-11 11:32:12 +05:30
Adhiraj Singh
2b33a5202c fix: do not retry not fromMe 2021-12-11 10:08:53 +05:30
Adhiraj Singh
7db5bb5d9a chore: do not throw unhandled error on send messages again, log error 2021-12-10 13:15:02 +05:30
Adhiraj Singh
49e7ad4b25 fix: typeerror on some group create 2021-12-07 22:09:18 +05:30
LightningNeko
7e414a940b fix group announce and restrict always false (#971)
* fix group announce and restrict always false

* refactor: make group setting change params in line with WA

Co-authored-by: Adhiraj Singh <adhirajsingh1001@gmail.com>
2021-12-06 08:53:12 +05:30
Adhiraj Singh
cccd9305a2 fix: do not throw error on missing message for retry 2021-12-05 18:05:47 +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
a8decb9c11 docs: add some comments for "chatModify" + logging for app patch 2021-11-29 23:57:30 +05:30