Commit Graph

90 Commits

Author SHA1 Message Date
Adhiraj Singh d98d4156fe feat: utility functions for poll updates 2023-03-02 18:45:56 +05:30
Adhiraj Singh cd42881201 feat: allow messageSecret as param to poll create 2023-03-02 17:42:34 +05:30
Adhiraj Singh 3052398cd0 Merge branch 'master' into pr/2472 2023-03-02 15:22:46 +05:30
Adhiraj Singh 06f2d354bf chore: lint files 2023-03-02 15:22:43 +05:30
Adhiraj Singh ca24608dc8 chore: pass axios options to downloading remote media 2023-02-18 13:03:47 +05:30
Alan Mosko 9c71267e22 Update messages.ts 2023-01-17 11:53:13 -03:00
Alan Mosko 78f04d8714 wip 2023-01-11 23:58:29 -03:00
Adhiraj Singh 5041be776e feat: handle futureproofmessage 2022-12-23 16:58:39 +05:30
kaatt 474dc78d24 add viewOnceMessageV2 2022-12-23 16:58:39 +05:30
kaatt fb1d39eba4 Update messages.ts
Co-Authored-By: Adhiraj Singh <adhirajsingh1001@gmail.com>
2022-12-23 16:58:39 +05:30
kaatt 39bd5b1c94 fix 2022-12-23 16:58:39 +05:30
kaatt 004bb98b59 remove console.log 2022-12-23 16:58:39 +05:30
kaatt 02e05aba42 improve normalizeMessageContent 2022-12-23 16:58:39 +05:30
Adhiraj Singh f1ca770930 chore: add "documentWithCaptionMessage" to normalise msg 2022-11-23 10:50:54 +05:30
Adhiraj Singh 47900eae14 feat: add listReply 2022-11-13 12:23:22 +05:30
Adhiraj Singh b2aa51a13d feat: add custom patchMsg function + remove patch for btns 2022-11-12 19:31:11 +05:30
Adhiraj Singh f0bdb12e56 feat: generate high quality thumbs on link preview 2022-09-15 18:40:22 +05:30
Adhiraj Singh 561163c88d feat: allow downloading extendedTextMessage thumbs 2022-09-15 15:13:54 +05:30
Adhiraj Singh 3a891e071e feat: map all WA media types 2022-09-15 15:09:51 +05:30
Adhiraj Singh 765dcc1d1f fix: upload for product 2022-09-02 20:10:13 +05:30
Ilya Borodin 4f1d9492c5 Changed concat to push 2022-08-20 23:21:56 +05:30
Adhiraj Singh 8a234e1073 feat: implement product message sending 2022-08-08 16:25:20 +05:30
Adhiraj Singh 9f3b00d58d fix: temp patch for button/list messages 2022-08-04 11:13:00 +05:30
Adhiraj Singh a4208a4bf6 fix: exclude emails from URL gen 2022-08-02 08:38:10 +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 40a1e268aa feat: add "strictNullChecks" 2022-07-09 10:20:07 +05:30
aqulzz 200b75d53e fix: add senderTimestampMs automatically in reactMessage (#1845)
* docs: how to remove the reaction message

* Add `senderTimestampMs` automatically in reactMessage

* fix lint
2022-07-02 19:52:34 +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 24dd76771e fix: correctly extract media content 2022-06-21 13:56:21 +05:30
Adhiraj Singh 32fadda86a feat: add button reply 2022-06-13 16:22:28 +05:30
Adhiraj Singh 79518787b6 feat: prevent urlInfo gen 2022-06-10 09:52:36 +05:30
Adhiraj Singh 0ff6e1b571 chore: log more info when uploading media 2022-06-10 09:30:31 +05:30
Adhiraj Singh cafc707628 feat: add option to reupload in downloadMediaMessage 2022-06-01 13:19:05 +05:30
Adhiraj Singh 4c51800b09 feat: add "assertMediaContent" util 2022-06-01 13:02:05 +05:30
Adhiraj Singh 15761ca9df chore: more modular link preview generation 2022-05-27 13:30:37 +05:30
Adhiraj Singh ebec02908c feat: add clean message util before calling "messages.upsert" 2022-05-23 12:32:43 +05:30
Adhiraj Singh 4a8c6ed66d fix: correctly generate quoted msgs 2022-04-30 17:40:08 +05:30
Ilya Borodin 2228da3b08 Preview link fix (#1548)
* Preview link fix

* Preview link refactor

* Deleted empty line

* Redundant unnecessary changes

* Added checker for http/https prefix in link

Co-authored-by: Ilya Borodin <ilya.borodin@botconversa.com.br>
2022-04-29 18:32:13 +05:30
Adhiraj Singh 44a6ac3534 Merge branch 'master' into invalid-qr-patch 2022-04-22 18:20:17 +05:30
Adhiraj Singh d5e46b784b fix: only generate urlInfo if not provided 2022-04-20 20:31:49 +05:30
Adhiraj Singh 5655961d12 feat: allow passing of url info in text message 2022-04-20 20:30:11 +05:30
Adhiraj Singh 15f66b802b refactor: templateMessage cleaner code 2022-04-18 12:41:38 +05:30
Adhiraj Singh 5aa64f2c39 feat: add readMessages function 2022-04-06 09:30:32 +05:30
Adhiraj Singh fef6b9c6f3 chore: use normalizeMessageContent in message 2022-03-23 16:18:51 +05:30
Ami 3a52f06c0f Added ReactionMessage for React User Message with Emoji (#1382)
* Add react type

* Add ReactionMessage

* Add reactionMessage example...

* Lint fix...
2022-03-23 00:35:13 +05:30
Adhiraj Singh d238826815 chore: import cleanup 2022-03-19 08:26:40 +05:30
Adhiraj Singh f2c91bcedd refactor: split downloadMediaMessage into functional components 2022-03-04 16:50:39 +05:30
Adhiraj Singh 5c05a5d34b feat: add normalizeMessageContent util 2022-03-04 12:27:10 +05:30
kaatt 7f495cf5f1 fix ephemeral view once message (#1307)
* fix ephemeral view once message

* fix ephemeral view once message
2022-03-03 01:01:41 +05:30
Adhiraj Singh d192ffe6bc fix: forward message content 2022-03-02 00:06:38 +05:30