Commit Graph

64 Commits

Author SHA1 Message Date
Rajeh Taher aeabecdf67 messages-media: fix waveform import 2025-02-16 18:36:59 +02:00
Rajeh Taher 18ac07df8e lint: 0 warnings left 2024-10-14 05:15:10 +03:00
Ericky Thierry abafce525c stream to buffer conversion for no apparent need 2024-07-12 20:54:22 -03:00
Rajeh Taher c8aab8d03f fix(master): yarn lock and axios error + move to WhiskeySockets libsignal 2024-06-16 17:11:17 +03:00
Timothy Dillan 5b02715fb0 chore: fix audio decode error due to passing spread argument 2024-01-21 13:28:10 +08:00
Davidson Gomes cba9827851 feat: Send Status (status@broadcast) {text, media, audio(with waveform)} (#249)
Co-authored-by: Davidson Gomes <contato@agenciadgcode.com>
2023-07-18 10:25:16 -03:00
Codeboss 2c76713565 feat: Add waveforms to voice messages (#180)
Co-authored-by: Edgard <edgardmessias@gmail.com>
2023-07-13 21:08:11 -03:00
Adhiraj Singh bd17f3742e fix: stream destroy 2023-03-03 12:41:37 +05:30
Adhiraj Singh 7e9b9b7f9a fix: stream errors not being handled 2023-03-03 12:28:16 +05:30
Adhiraj Singh cc1fc9a53c fix: delete tmp file if failed enc 2023-02-20 21:18:31 +05:30
Adhiraj Singh 4ba828320e feat: handle maxContentLength in downloading media 2023-02-18 13:03:58 +05:30
Adhiraj Singh ca24608dc8 chore: pass axios options to downloading remote media 2023-02-18 13:03:47 +05:30
Adhiraj Singh f013b61e35 chore: update axios 2023-02-18 12:34:04 +05:30
kaatt cd9441fd0e Update messages-media.ts 2022-11-14 16:26:23 +05:30
kaatt 5c950dac10 fix getImageProcessingLibrary usage 2022-11-14 16:26:23 +05:30
kaatt c59952f2ee fix extractImageThumb threw with webpack (#2266)
* fix extractImageThumb threw with webpack

* Update messages-media.ts

* Update src/Utils/messages-media.ts

* fix: typescript errors

Co-authored-by: Adhiraj Singh <adhirajsingh1001@gmail.com>
2022-10-18 09:31:32 +05:30
Adhiraj Singh 116b30dff0 feat: expose axios options 2022-09-19 17:25:54 +05:30
Adhiraj Singh e7f6838fa4 chore: remove legacy code 2022-09-19 14:59:35 +05:30
Adhiraj Singh 733345bb95 fix: jimp thumb gen 2022-09-15 18:47:00 +05:30
Adhiraj Singh f0bdb12e56 feat: generate high quality thumbs on link preview 2022-09-15 18:40:22 +05:30
Adhiraj Singh 864a01f9a5 feat: return og dimensions when generating thumb 2022-09-15 16:00:23 +05:30
Adhiraj Singh 3a891e071e feat: map all WA media types 2022-09-15 15:09:51 +05:30
Adhiraj Singh b05ce25dfa fix: do not add default check for sharp 2022-09-15 10:01:24 +05:30
kaatt 0f989751db actually fix 2022-09-15 10:01:24 +05:30
kaatt 48f8b30583 fix getImageProcessingLibrary 2022-09-15 10:01:24 +05:30
Adhiraj Singh 35b7a310a4 fix: correctly check for image processing lib 2022-09-12 12:24:55 +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 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
Adhiraj Singh de95694266 fix: use correct status code for throwing media error 2022-07-04 11:24:34 +05:30
Adhiraj Singh 06ce5f9be0 feat: add media retry for MD 2022-06-01 13:04:45 +05:30
Adhiraj Singh a98484c38b refactor: split "downloadContentFromMessage" to "downloadEncryptedContent"" 2022-04-21 00:52:17 +05:30
Adhiraj Singh 872536fa5b feat: link previews on MD 2022-04-19 19:00:32 +05:30
Catalin Bozan 6275b85eae Keep aspect ratio when generating thumbnails (#1409)
* fix: generated thumbnail ratio

* Delete myvid.mp4

* Delete thumb.jpeg
2022-03-25 16:23:38 +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 8f11f0be76 chore: add linting 2022-01-19 15:54:02 +05:30
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
Adhiraj Singh b191e1b23a fix: remove limits on max body and content length 2021-12-31 15:14:55 +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 9e33c80add fix: use fetchAgent for uploading data 2021-12-18 16:44:43 +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