Commit Graph

84 Commits

Author SHA1 Message Date
Leonardo Bein 704aa1e434 feat: Add notification group: change inviteCode 2022-11-22 12:02:31 +05:30
Adhiraj Singh e547310a19 fix: add history msg to creds.update to prevent race condition 2022-11-07 17:22:19 +05:30
Adhiraj Singh 02f9df5de4 fix: check for content in "isRealMessage" 2022-11-07 14:40:08 +05:30
Adhiraj Singh 4352a84498 chore: log app state key recv 2022-11-06 20:06:14 +05:30
Adhiraj Singh b9d13a57d8 feat: update real msg logic 2022-10-23 17:24:54 +05:30
Adhiraj Singh e710ed96f9 fix: unarchive chats if reaction to my message 2022-10-17 12:53:47 +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
Adhiraj Singh 696fe0de9f fix: correctly check isLatest 2022-09-01 08:39:36 +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
Adhiraj Singh 4e85a10043 fix: reaction sender map 2022-07-17 10:56:07 +05:30
Adhiraj Singh 8742bc2fd5 fix: isLatest flag 2022-07-13 11:04:55 +05:30
Adhiraj Singh 40a1e268aa feat: add "strictNullChecks" 2022-07-09 10:20:07 +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 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
Adhiraj Singh 66f49e0b3d fix: correctly set reaction msg key 2022-06-25 22:39:55 +05:30
fadiinho bd98b13895 fix: reaction message doesn't appear when send to a group (#1700)
* fix: reaction message doesn't appear when send to a group

* use undefined instead of null
2022-06-13 20:15:56 +05:30
Adhiraj Singh b125638253 fix: add missing "isLatest" flag 2022-06-13 12:53:20 +05:30
Adhiraj Singh 5cb71ac862 feat: more accurately handle app state sync 2022-06-11 12:02:08 +05:30
Adhiraj Singh 5305730d82 feat: track history being stored
This is done because sometimes we receive history after the first connect too, and to ensure the "isLatest" flag is accurate -- we ensure no history was received previously
2022-06-07 21:18:51 +05:30
Adhiraj Singh 4ea2c33cfa fix: cleanMessage for reaction messages 2022-05-23 12:46:34 +05:30
Adhiraj Singh ebec02908c feat: add clean message util before calling "messages.upsert" 2022-05-23 12:32:43 +05:30
Adhiraj Singh 9a39a46398 feat: add toggle to download history 2022-05-22 17:23:30 +05:30
Adhiraj Singh 46f309929b feat: message reaction fix from other party 2022-05-11 17:50:04 +05:30
Adhiraj Singh bf8ff6d253 fix: readonly chats on sync 2022-05-09 16:03:53 +05:30
Adhiraj Singh 6e0ac6899c feat: move conversation up when missed call 2022-05-09 15:19:05 +05:30
LyFE 2e18d83f03 fix groupParticipantUpdate (#1527) 2022-04-24 00:55:08 +05:30
Adhiraj Singh 850611e500 fix: typo in ciphertext check 2022-04-07 15:31:35 +05:30
Adhiraj Singh 0d94315776 feat: handle unarchiveChats setting 2022-04-07 11:29:57 +05:30
Adhiraj Singh 030a534637 fix: remove redundant chat updates 2022-03-29 18:25:17 +05:30
Adhiraj Singh ab9b232838 refactor: move processMessage out of socket 2022-03-29 14:04:14 +05:30