Commit Graph

60 Commits

Author SHA1 Message Date
Rafael Garcia 3ac29e131d Slint fixes applied 2023-05-15 09:41:33 -05:00
Rafael Garcia 38f285760d feat(labels): modify chat utils 2023-05-14 12:44:19 -05:00
Adhiraj Singh 4aadc9dc6c fix: add option for appStateMacVerification 2022-11-08 22:33:53 +05:30
Adhiraj Singh f892a1e81f fix: duplicate mutation release on failed patch 2022-11-08 22:28:27 +05:30
Adhiraj Singh 154926ec3c chore: correctly throw app state key not found 2022-11-06 20:06:50 +05:30
Adhiraj Singh 2a8ce563a2 chore: remove redundant newMutations log 2022-11-06 19:51:45 +05:30
Adhiraj Singh d0330d1863 refactor!: cleaner message history sync
This is a breaking change,
1. three events (chats.set, contacts.set, messages.set) are now just one `messaging-history.set` event
2. no need to debounce for app state sync
3. added a new "conditional" chat update to allow for correct app state sync despite not having the chat available on hand
2022-09-29 16:32:57 +05:30
Adhiraj Singh e08dd10198 refactor!: use proto.Conversation's own chat mutation fields instead of baileys added 2022-09-29 11:06:09 +05:30
Adhiraj Singh bb983cd30d chore: reduce logging 2022-09-28 10:40:29 +05:30
Adhiraj Singh ae3ac78dc3 feat: pass axios config to all axios instances 2022-09-19 17:46:43 +05:30
Ilya Borodin 4f1d9492c5 Changed concat to push 2022-08-20 23:21:56 +05:30
Adhiraj Singh dc07d31dc7 fix: correctly handle deleteMessageFromMe 2022-08-17 16:00:08 +05:30
Adhiraj Singh 2549d10be9 feat: update proto
The new proto extract has a bunch of breaking changes, so if you were using the raw proto in your code somewhere -- then you may have to update your code to make it work with the new proto

!BREAKING_CHANGE
2022-08-01 10:43:04 +05:30
LeonardoBein b42be6bce4 Change profile name for yourself (#1913)
* feat: change profile name

* fix: unnecessary return
2022-07-21 15:56:51 +05:30
Adhiraj Singh 7b8390f1ca fix: delete chat + star message actions not syncing 2022-07-14 11:23:07 +05:30
Adhiraj Singh 40a1e268aa feat: add "strictNullChecks" 2022-07-09 10:20:07 +05:30
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