Commit Graph

93 Commits

Author SHA1 Message Date
Adhiraj Singh
9c0a3b8962 feat: add option to specify limit for custom upload host 2022-01-03 12:40:55 +05:30
Adhiraj Singh
63c510a869 fix: use tmp buffer for upload for multiple retries 2022-01-03 12:29:27 +05:30
Adhiraj Singh
923b38f24b chore: more descriptive logging 2022-01-03 12:05:23 +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
b191e1b23a fix: remove limits on max body and content length 2021-12-31 15:14:55 +05:30
Adhiraj Singh
3713646980 fix: media cache 2021-12-30 10:48:10 +05:30
Adhiraj Singh
03f33852df fix: ensure media cache does not override caption & other properties 2021-12-29 14:10:00 +05:30
Adhiraj Singh
83bfa0e9b9 chore: minor fixes 2021-12-24 10:18:21 +05:30
Adhiraj Singh
110b9d1f09 fix: transaction not respecting null set 2021-12-22 21:37:27 +05:30
burstfreeze
98af4a6624 Fix #1010 by asking for full list of sync states when needed (#1043)
* Process patches that are longer.

* Fixed type declaration

* Changed resync behavior from recusive to iterative

* refactor: cleaner handling of hasMorePatches

Co-authored-by: Adhiraj Singh <adhirajsingh1001@gmail.com>
2021-12-22 20:57:58 +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
c1301deda0 fix: correctly copy msg for forward 2021-12-20 11:12:21 +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
db941f1472 fix: download on axios 2021-12-19 22:25:17 +05:30
Adhiraj Singh
9068157cb1 chore: replace got with axios
Primarily because it had some odd issues with handling streams
2021-12-19 20:18:21 +05:30
Adhiraj Singh
9d7aec11da feat: add more logging to media 2021-12-19 14:35:51 +05:30
Adhiraj Singh
af0804048c fix: incorrect enc msg detection 2021-12-19 00:33:33 +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
9e33c80add fix: use fetchAgent for uploading data 2021-12-18 16:44:43 +05:30
Adhiraj Singh
c803e22e8a feat: functional legacy socket 2021-12-17 20:58:33 +05:30
Adhiraj Singh
d8b415a075 fix: merge conflict errors 2021-12-17 19:30:10 +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
Adhiraj Singh
e51bbc4893 feat: add support for "sharp" for image generation 2021-12-17 11:44:04 +05:30
Adhiraj Singh
4f674d3e26 fix: sending multiple contacts 2021-12-16 23:22:03 +05:30
Adhiraj Singh
6c4a9c7354 fix: sending list of contacts 2021-12-16 23:20:27 +05:30
Adhiraj Singh
9474017930 feat: async import got wherever required 2021-12-16 00:38:53 +05:30
Adhiraj Singh
d15dd6e1d2 feat: add "direct_path" to media messages 2021-12-13 17:31:20 +05:30
Adhiraj Singh
ea077e9fea refactor: use abstraction for tmpdir 2021-12-13 13:50:39 +05:30
Adhiraj Singh
13b49e658d fix: do not fetch empty ID list on transaction 2021-12-12 12:25:03 +05:30
Adhiraj Singh
0650c10c73 fix: decode app state key correctly 2021-12-12 11:18:04 +05:30
Adhiraj Singh
f284217d35 feat: implement transactions on auth state 2021-12-11 18:28:07 +05:30
Adhiraj Singh
2b8256d56b feat: cleaner auth state management + store SK keys
!BREAKING_CHANGE
2021-12-11 17:54:38 +05:30
Adhiraj Singh
0ef9ce166d fix: set remote jid on quoted participant 2021-12-11 00:17:26 +05:30
Vinicius Silva
1e386480e4 [MD] Added DeviceType (#946)
* [MD] Added DeviceType

* Update messages.ts

* Update messages.ts

* Delete index.d.ts

* Add files via upload

* Delete messages-recv.ts

* Add files via upload

* Update messages.ts
2021-12-06 08:53:38 +05:30
Adhiraj Singh
d9cfed64ff fix: bad request on sending messages in some cases
Issue source found out by @jackcokk
2021-12-03 15:20:17 +05:30
Adhiraj Singh
9f8223d46b fix: 10x better compression for image thumbs 2021-12-02 12:13:45 +05:30
Adhiraj Singh
b5ac28d426 feat: implement partial media downloads 2021-12-02 11:38:24 +05:30
Rajeh Taher
cd9c313e47 [MD] Added template support and footers for buttons & templates (#942)
* Added template support and footers for buttons & templates

* Template message readme
2021-11-30 10:40:54 +05:30
Adhiraj Singh
0d27fc467b feat: add sanity check for chat modifications 2021-11-29 23:57:07 +05:30
Adhiraj Singh
5e94a2b6e3 fix: pin modification 2021-11-26 13:08:50 +05:30
Maurilho Batista
e810f2dec5 Add support for stream as media message input (#905)
* Add support for stream as media message input

* refactor: use async/await on readable toBuffer

* refactor: be more explicit about using a readable stream

Co-authored-by: Adhiraj Singh <adhirajsingh1001@gmail.com>
2021-11-26 10:30:15 +05:30
Adhiraj Singh
eac75afbe2 fix: do not call REMOVE op for mutations 2021-11-25 15:21:33 +05:30
Adhiraj Singh
ddf6daba65 feat: implement pin chat modification 2021-11-25 13:37:05 +05:30
Adhiraj Singh
b3e0f26ec0 fix: typeerror on no messages provided 2021-11-25 13:37:05 +05:30
Adhiraj Singh
99619c4c42 refactor: less code duplication for timestamp 2021-11-25 13:37:05 +05:30
Adhiraj Singh
25f76b2f66 refactor: more specific arguments for encode patch 2021-11-25 13:37:05 +05:30
Adhiraj Singh
7b42fa5a54 fix: correct operation type on chat patch 2021-11-25 00:37:44 +05:30
Adhiraj Singh
efc7dffbeb refactor: cleaner & faster app state sync management
1. Is orders of magnitude faster than the previous edition
2. Stores lesser data, so more memory efficient
3. This breaks the current app state in baileys, but baileys will auto-resync & update the state
2021-11-24 20:04:36 +05:30