Commit Graph

18 Commits

Author SHA1 Message Date
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