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