Commit Graph

73 Commits

Author SHA1 Message Date
Rajeh Taher 66c2e9c0b6 Update Message.ts 2023-05-06 01:44:29 +03:00
Rajeh Taher f5742ae33c Update Message.ts 2023-05-06 01:31:07 +03:00
Adhiraj Singh fe1d0649b5 feat: add signal repository + tests 2023-03-18 12:25:47 +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 79aa2e5176 feat: narrower definition of cachestore 2023-02-21 11:56:27 +05:30
Adhiraj Singh 34f8f60d31 chore: lint 2023-02-21 11:49:59 +05:30
Adhiraj Singh ca24608dc8 chore: pass axios options to downloading remote media 2023-02-18 13:03:47 +05:30
Alan Mosko 78f04d8714 wip 2023-01-11 23:58:29 -03:00
Adhiraj Singh 7f2384a058 feat: support caption in document 2022-11-22 17:18:37 +05:30
Adhiraj Singh 47900eae14 feat: add listReply 2022-11-13 12:23:22 +05:30
Adhiraj Singh 586db48d2b feat: pass original thumbnail url in WAUrlInfo 2022-09-15 18:50:23 +05:30
Adhiraj Singh f0bdb12e56 feat: generate high quality thumbs on link preview 2022-09-15 18:40:22 +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
Adhiraj Singh c5917364ba chore: add stronger lint rules 2022-08-18 10:37:40 +05:30
Adhiraj Singh 1550fc5ce6 fix: error in type 2022-08-08 16:55:47 +05:30
Adhiraj Singh 8a234e1073 feat: implement product message sending 2022-08-08 16:25:20 +05:30
Adhiraj Singh bed9e384ba feat: added played receipt 2022-08-04 11:55:35 +05:30
Rajeh Taher fdb1b9e89b Implementing Delete messages for everyone (group) 2022-08-04 08:04:12 +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 4c60e311f4 feat: correctly send retry messages w count 2022-07-13 10:34:13 +05:30
Adhiraj Singh 40a1e268aa feat: add "strictNullChecks" 2022-07-09 10:20:07 +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 721d0f32d6 feat: handle bad message acks + send retry to all correctly 2022-06-22 14:50:48 +05:30
4l3dx 084c39ca73 fix: add missing isAnimated flag (#1767) 2022-06-22 10:44:16 +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 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 6824a203d0 feat: correctly handle presence being offline for receipts
When sendPresenceUpdate('unavailable') is called, it should allow notifications to be received on the phone
2022-06-01 13:20:21 +05:30
Adhiraj Singh e131b7c4d3 feat: pass cachedGroupMetadata from sendMessage 2022-05-23 11:32:51 +05:30
Adhiraj Singh 7e290b4dfb chore: reduce data required for cachedGroupMetadata 2022-05-23 11:20:01 +05:30
Adhiraj Singh a98484c38b refactor: split "downloadContentFromMessage" to "downloadEncryptedContent"" 2022-04-21 00:52:17 +05:30
Adhiraj Singh 5655961d12 feat: allow passing of url info in text message 2022-04-20 20:30:11 +05:30
Adhiraj Singh 59f834ca39 fix: handle receipts more accurately
1. only send timestamp with read receipts
2. use unix timestamp in seconds instead of millis
3. use "sender" receipts for own messages
2022-04-03 11:27:13 +05:30
Adhiraj Singh 8addc714c7 feat: add more receipt types 2022-04-02 15:44:22 +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 de7d1002a9 lint: stricter linting rules 2022-03-01 16:32:14 +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 9c0a3b8962 feat: add option to specify limit for custom upload host 2022-01-03 12:40:55 +05:30
Pokoke 3ad02f0317 fix listMessage (#1070)
* fix listMessage

* Default listType

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>

* use the ListMessageListType enum

* use the ListMessageListType enum

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2021-12-31 15:45:35 +05:30
Adhiraj Singh 5ae0b98636 feat: add replace type for messages.upsert 2021-12-23 10:54:17 +05:30
Adhiraj Singh ed4f234fd8 fix: buttonText should be optional 2021-12-19 22:40:16 +05:30
Rajeh Taher d62db2bbd6 Added List message support and removed "saving auth state" (#1048)
* Added template support and footers for buttons & templates

* Template message readme

* got rid of "saving auth state" and added lists

* added body

* Update README.md
2021-12-19 22:29:35 +05:30
Adhiraj Singh be0e2210d9 Merge branch 'multi-device' into multi-device-legacy 2021-12-17 19:28:00 +05:30
Adhiraj Singh 19a9980492 feat: add legacy connection 2021-12-17 19:27:04 +05:30
Adhiraj Singh 38a44be006 perf: experimental do not use fs for enc stream 2021-12-17 18:27:03 +05:30