Commit Graph

15 Commits

Author SHA1 Message Date
Rafael Garcia 3ac29e131d Slint fixes applied 2023-05-15 09:41:33 -05:00
Rafael Garcia ce019dcf0f feat(store/labels): add ability to store and query labels 2023-05-14 12:50:45 -05:00
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 e7f6838fa4 chore: remove legacy code 2022-09-19 14:59:35 +05:30
fadiinho 9e096c731c feat: add reaction update to the store 2022-07-27 10:07:51 +05:30
Adhiraj Singh 40a1e268aa feat: add "strictNullChecks" 2022-07-09 10:20:07 +05:30
Cesar Cejudo 54a448b2a8 Fix in-memory-store contacts (#1420)
fix issue where fromJSON loads contacts from the wrong variable
2022-03-27 20:36:28 +05:30
Adhiraj Singh de7d1002a9 lint: stricter linting rules 2022-03-01 16:32:14 +05:30
Anshu S bbea04e5bc Fix Issue #1209 (#1210) 2022-02-07 18:20:48 +05:30
Adhiraj Singh 08cd253e90 feat: add 'updateMessageWithReceipt' utility 2022-01-22 12:05:38 +05:30
Adhiraj Singh 92587bd46a refactor: use the proto UserReceipt instead of custom MessageInfo 2022-01-22 00:27:00 +05:30
Adhiraj Singh 284c7e7812 fix: do not mutate update object reference 2022-01-20 12:28:56 +05:30
Adhiraj Singh 1fb52de958 docs: update readme about store 2022-01-19 22:38:04 +05:30
Adhiraj Singh fb66733b61 feat: implement in memory store
1. the store works as a temporary store for connection data such as chats, messages & contacts
2. the store is primarily meant to illustrate the usage of the event emitter as a way to construct the state of the connection. This will likely be very inefficient to perform well at scale
3. the store is meant to be a quick way to have some visibility of data while testing
4. the store works for both legacy & MD connections
2022-01-19 21:35:59 +05:30