Commit Graph

53 Commits

Author SHA1 Message Date
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 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 7b3fd7c3c5 fix: tsc error in legacy version 2022-06-13 12:57:01 +05:30
Adhiraj Singh 2b12defe6b chore: parity between MD & legacy 2022-06-01 13:40:40 +05:30
Adhiraj Singh 4c51800b09 feat: add "assertMediaContent" util 2022-06-01 13:02:05 +05:30
Adhiraj Singh 9c3cb7c940 lint: legacy chats 2022-05-31 16:01:04 +05:30
P 44834d29fa update profile pic in legacy version (#1611)
Co-authored-by: Henrique <qplok02@gmail.com>
2022-05-23 13:25:31 +05:30
Adhiraj Singh 85a58fbc10 fix: normalize participants API 2022-05-12 18:58:02 +05:30
Adhiraj Singh 6ee60bff67 chore: add ability to specify ISyncActionMessageRange directly 2022-04-28 16:26:23 +05:30
Adhiraj Singh ab65a4dad9 lint: lint pending files 2022-04-19 19:11:59 +05:30
Adhiraj Singh b933970d51 fix: do not fire chat update for reactions 2022-03-23 12:39:11 +05:30
Ezequiel José Oliveira f773a32da8 fix processMessage unexpected error (#1401) 2022-03-23 08:11:21 +05:30
Adhiraj Singh 9fee7faaf6 feat: add message events for reactions 2022-03-23 00:40:46 +05:30
Adhiraj Singh 4962070c29 fix: possible typeerror 2022-03-21 18:57:29 +05:30
Adhiraj Singh 93c8db319e feat: implement "treatCiphertextMessagesAsReal" flag 2022-03-21 14:15:22 +05:30
Adhiraj Singh 1c77c00be5 chore: minor types refactor on legacy presence update 2022-03-08 15:59:11 +05:30
Adhiraj Singh 9ca46635d6 fix: correctly parse protocol message 2022-03-07 15:38:52 +05:30
Adhiraj Singh 238cde23b7 feat: automatic upload detection for product images 2022-03-07 15:33:52 +05:30
Adhiraj Singh 8a52eeb310 feat: implement getOrder on legacy 2022-03-06 10:56:29 +05:30
Adhiraj Singh f2c91bcedd refactor: split downloadMediaMessage into functional components 2022-03-04 16:50:39 +05:30
Adhiraj Singh de7d1002a9 lint: stricter linting rules 2022-03-01 16:32:14 +05:30
Adhiraj Singh 4ac39d72ff fix: map eph duration on legacy group metadata 2022-02-27 12:29:17 +05:30
Adhiraj Singh d21a39c302 feat: add product API for legacy connections 2022-02-24 17:58:37 +05:30
Adhiraj Singh e7c2d4e117 fix: account for missing owner prop in legacy 2022-01-22 15:39:04 +05:30
Adhiraj Singh b68efb15b6 fix: correct verify 2022-01-22 14:57:59 +05:30
Adhiraj Singh 92587bd46a refactor: use the proto UserReceipt instead of custom MessageInfo 2022-01-22 00:27:00 +05:30
Adhiraj Singh 8f11f0be76 chore: add linting 2022-01-19 15:54:02 +05:30
Adhiraj Singh 7bb6e3ceeb refactor: chats.set event 2022-01-16 13:02:38 +05:30
Adhiraj Singh 473c5bdce5 chore: add guard for sendRawMessage 2022-01-03 13:33:49 +05:30
Adhiraj Singh 923b38f24b chore: more descriptive logging 2022-01-03 12:05:23 +05:30
Adhiraj Singh 83bfa0e9b9 chore: minor fixes 2021-12-24 10:18:21 +05:30
Adhiraj Singh 5ae0b98636 feat: add replace type for messages.upsert 2021-12-23 10:54:17 +05:30
Adhiraj Singh 4710f6603a fix: delete chat on legacy 2021-12-21 17:21:25 +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 677f50baaa feat: add contacts to chats.set event 2021-12-20 13:59:04 +05:30
Adhiraj Singh 258b2f2747 chore: update legacy connection close msgs 2021-12-20 12:37:18 +05:30
Adhiraj Singh dbed7fef74 chore: add profile picture timeout 2021-12-20 12:36:32 +05:30
Adhiraj Singh 61d1300dae chore: expose admintest + cleaner initial state update 2021-12-19 14:48:09 +05:30
Adhiraj Singh 9d7aec11da feat: add more logging to media 2021-12-19 14:35:51 +05:30
Adhiraj Singh 2696af4da1 fix: catch unknown user action 2021-12-19 00:35:15 +05:30
Adhiraj Singh 89a159aac3 fix: clear debounce timeout on close 2021-12-18 23:33:55 +05:30
Adhiraj Singh 1af46bfb3d fix: group metadata mapping on legacy 2021-12-18 23:20:50 +05:30
Adhiraj Singh ae59d6e9c6 fix: fire "connection-update" on legacy socket create 2021-12-18 22:30:03 +05:30
Adhiraj Singh f61f553e01 chore: more unification of legacy APIs
1. unify waitForConnectionUpdate
2. unify printing QR in terminal
2021-12-18 22:18:51 +05:30
Adhiraj Singh 02dd8c93a6 chore: fix types 2021-12-18 19:56:58 +05:30
Adhiraj Singh a723b50741 chore: add type distinguisher for sockets 2021-12-18 19:54:08 +05:30
Adhiraj Singh 37c07937d7 refactor: use constant state & authInfo on legacy 2021-12-18 19:45:58 +05:30
Adhiraj Singh 1e97c7714e chore: more unification of APIs 2021-12-18 17:01:16 +05:30
Adhiraj Singh d09025e8dd fix: ephemeral toggle not being applied correctly on legacy 2021-12-18 17:01:06 +05:30