Commit Graph

44 Commits

Author SHA1 Message Date
Adhiraj Singh
41ca76a0af fix: chats.delete patch on sync 2022-07-06 22:05:01 +05:30
Adhiraj Singh
2c03802939 chore: use "null" to signify removal of mute 2022-06-27 15:14:05 +05:30
Adhiraj Singh
eaf0f37d24 refactor: use event-buffer for state sync resyncs 2022-06-27 14:51:26 +05:30
Dwi Rizqi
e7087cabf5 fix: Delete Message For Me (#1718)
* Add Timestamp for deleteMessageForMe

* Fix Typo Readme

* Add Timestamp for deleteMessageForMe

* fix: Typo type timestamp
2022-06-13 20:13:52 +05:30
Adhiraj Singh
f87f89329b perf: avoid excess memory usage when syncing state 2022-06-11 20:25:57 +05:30
Adhiraj Singh
59652a5368 feat: handle chat deletes + message stars 2022-05-25 12:12:17 +05:30
burstfreeze
767120a555 fix: undefined on unpin action (#1551) 2022-04-29 18:32:37 +05:30
Adhiraj Singh
6ee60bff67 chore: add ability to specify ISyncActionMessageRange directly 2022-04-28 16:26:23 +05:30
Adhiraj Singh
87c1a04503 feat: add more sanity checks to chat patch 2022-04-28 15:49:02 +05:30
Adhiraj Singh
dba6d2e0cb fix: do not throw error on conditions not matching in lastMessage check 2022-04-28 15:24:10 +05:30
Adhiraj Singh
f1b64c3c35 feat: send presence update when name changed 2022-04-08 23:29:48 +05:30
Adhiraj Singh
39eb0d1427 docs: add logs 2022-04-07 11:45:09 +05:30
Adhiraj Singh
0d94315776 feat: handle unarchiveChats setting 2022-04-07 11:29:57 +05:30
Adhiraj Singh
ebf4aa6772 fix: normalize participant in last message 2022-04-06 20:43:09 +05:30
Adhiraj Singh
ec6e904db4 refactor: process sync actions out of socket 2022-03-29 14:16:51 +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
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
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
19a9980492 feat: add legacy connection 2021-12-17 19:27:04 +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
0d27fc467b feat: add sanity check for chat modifications 2021-11-29 23:57:07 +05:30
Adhiraj Singh
5e94a2b6e3 fix: pin modification 2021-11-26 13:08:50 +05:30
Adhiraj Singh
eac75afbe2 fix: do not call REMOVE op for mutations 2021-11-25 15:21:33 +05:30
Adhiraj Singh
ddf6daba65 feat: implement pin chat modification 2021-11-25 13:37:05 +05:30
Adhiraj Singh
b3e0f26ec0 fix: typeerror on no messages provided 2021-11-25 13:37:05 +05:30
Adhiraj Singh
99619c4c42 refactor: less code duplication for timestamp 2021-11-25 13:37:05 +05:30
Adhiraj Singh
25f76b2f66 refactor: more specific arguments for encode patch 2021-11-25 13:37:05 +05:30
Adhiraj Singh
7b42fa5a54 fix: correct operation type on chat patch 2021-11-25 00:37:44 +05:30
Adhiraj Singh
efc7dffbeb refactor: cleaner & faster app state sync management
1. Is orders of magnitude faster than the previous edition
2. Stores lesser data, so more memory efficient
3. This breaks the current app state in baileys, but baileys will auto-resync & update the state
2021-11-24 20:04:36 +05:30
Adhiraj Singh
920e60815b feat: add newLTHashState util 2021-11-24 20:02:36 +05:30
Adhiraj Singh
983b28ba0e feat: implement "snapshot" resyncing 2021-11-24 18:48:00 +05:30
Adhiraj Singh
b4332488b8 fix: LT hash computation failing
Was trying to remove a patch that was already removed, adding a check to ensure to only remove patches that are of the SET type
2021-11-23 12:23:25 +05:30
Adhiraj Singh
e222ec4151 refactor: use only "getAppStateSyncKey" in syncd patch 2021-11-23 12:17:57 +05:30
Adhiraj Singh
ba453a588b feat: implement external patch parsing + app state sync on login 2021-11-08 15:07:25 +05:30
Adhiraj Singh
ba502f0436 chore: more descriptive LTHash error 2021-11-07 19:07:36 +05:30
Adhiraj Singh
d3b7ffecf2 code cleanup 2021-10-11 09:36:17 +05:30
Adhiraj Singh
173d1ddf8b implement chat modifications 2021-09-29 12:31:22 +05:30
Adhiraj Singh
1a83a4c6d4 nicer patch API 2021-09-28 19:33:21 +05:30
Adhiraj Singh
fdfe310fdf implement encrypting app patches 2021-09-28 19:22:39 +05:30
Adhiraj Singh
23101f87a1 move appstatesynckey to keys 2021-09-26 12:35:56 +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