Commit Graph

9 Commits

Author SHA1 Message Date
Adhiraj Singh
8d6e00eab6 fix: handle when buffered tasks fail 2022-08-18 10:15:27 +05:30
Adhiraj Singh
665e461e83 feat: absorb existing message updates into upsert 2022-07-22 15:33:04 +05:30
Adhiraj Singh
40a1e268aa feat: add "strictNullChecks" 2022-07-09 10:20:07 +05:30
Adhiraj Singh
4c800b95d1 fix: only fire valid events 2022-07-07 15:37:01 +05:30
Adhiraj Singh
d143ef0b7d feat: handle delete events accurately 2022-07-06 22:05:01 +05:30
Adhiraj Singh
189b740ea6 chore: remove "treatCiphertextMessagesAsReal" flag
!BREAKING_CHANGE

This was generally a poor design decision on my part to add something like this -- primarily because it could increment the chat unread counter a 100 times for a single message
2022-07-04 11:38:17 +05:30
Adhiraj Singh
5cc58d4aed feat: add bulk "process" capability to BaileysBufferableEventEmitter 2022-07-04 11:34:41 +05:30
Adhiraj Singh
eaf0f37d24 refactor: use event-buffer for state sync resyncs 2022-06-27 14:51:26 +05:30
Adhiraj Singh
7421f55daa feat: implement event buffer for offline msgs
!BREAKING_CHANGE

1. this allows all offline notifications to be combined into a batch -- to reduce the number of events being sent out
2. to enable the above, the "message.reaction" event has been made an array. Also removes the need for the "operation" field
3. have also now started processing all events under a single queue to prevent state sync problems
2022-06-27 13:38:29 +05:30