Commit Graph

165 Commits

Author SHA1 Message Date
Rajeh Taher 29f0ac83f8 tsc: fix builds & fix type errors 2025-07-19 17:16:07 +03:00
Rajeh Taher 787aed88b8 project: Move to ESM Modules 2025-07-17 13:54:17 +03:00
vini 19124426b2 [feat]: add/edit/remove contacts (#1172)
* add/edit/remove contacts

* use proto type in contact action

---------

Co-authored-by: canove <cassio@economicros.com.br>
2025-07-09 22:01:20 +03:00
DevAstro a4b96ed37e [READY FOR MERGE] Add support for custom profile picture dimensions (#1563)
* Add support for custom profile picture dimensions

The updateProfilePicture and generateProfilePicture functions now accept an optional dimensions parameter, allowing custom width and height for profile pictures. This provides more flexibility for image resizing beyond the default 640x640 size.

* minor corrections

Replaces 'w' and 'h' with 'width' and 'height' in profile picture related functions for improved clarity and consistency.

* fix lint
2025-06-30 16:04:37 -03:00
Wender Teixeira 83a6956b44 fix disconnect error when using sendPresenceUpdate with LID (#1545)
* chore: change version web

* fix: enhance pairing response validation and adjust HMAC handling for hosted devices

* refactor: remove unused 'from' attribute in chatstate message

* feat: update chatstate message to conditionally set 'from' attribute based on server type
2025-06-24 17:51:46 -03:00
vini 8b6ea34b07 fix: Connection error when add @ at start of your name (#1536) 2025-06-21 12:37:36 -03:00
canove fa706d0b50 chore: format everything 2025-05-06 12:10:19 -03:00
Rajeh Taher c037f68c2d socket: include lid in onWhatsApp response 2025-04-09 20:17:53 +03:00
Rajeh Taher 98ecd2a653 usync, chat: get bot profile info and get bot list 2025-03-19 00:44:53 +02:00
Rajeh Taher b7a9f7bd67 chats: stop using getMessage to decrypt poll votes
The new expected behavior is to decrypt the new votes yourself like in the Example.ts file
2025-03-14 23:40:33 +02:00
Rajeh Taher 49eeb7556d socket,utils: fix imports 2025-03-01 18:26:20 +02:00
Bob 1d88166613 Feat: Block messages from unknown numbers (#1071)
* Update Chat.ts

* Update chats.ts

* lint

* lint

* lint
2025-03-01 18:20:22 +02:00
Jared Wray 588de6ce10 fix: migrating to @cacheable/node-cache as it is maintained (#1074) 2025-03-01 18:15:49 +02:00
Rajeh Taher f1f49ad2c8 Usync: Barebones Usync Protocol support (#960)
* feature(feature/usync-mex): initial commit

* chore: fix merge commit

* chore:lint
2024-12-22 23:38:41 +02:00
Rajeh Taher 18ac07df8e lint: 0 warnings left 2024-10-14 05:15:10 +03:00
Rajeh Taher 61a0ff3178 mobile: deprecation. 2024-10-14 03:56:32 +03:00
Rajeh Taher bf578c79e7 fix(master): Fixes prop hash reset due to missing property in the response 2024-10-07 21:26:32 +03:00
Rajeh Taher 47b2f6dd41 fix(master): Small fix to the profile picture endpoints 2024-09-28 14:26:54 +03:00
建辉 6ff945502d feat: add label feature (#955)
Co-authored-by: 刘建辉 <liujianhui@gongchang.com>
2024-09-22 14:48:17 +03:00
Rajeh Taher 70f0321381 fix(master): New profile update/removal endpoint (inspired by #1048) 2024-09-22 14:32:05 +03:00
arthur simas ffafc167fb fix: remove 'none' from updateGroupsAddPrivacy (#966)
* fix: remove 'none' from updateGroupsAddPrivacy

* fix(fix/remove-none-groupadd): linting

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2024-08-14 12:16:12 +03:00
Rajeh Taher 1f9cfb1cba PDO protocol (peer data operation): Get more history sync + better message retry mechanism (#919)
* feat(feature/pdo-sync): initial commit

* feat(feature/pdo-sync): Moved to conventional send functions, exported, patched some errors

* fix(feature/pdo-sync): Linting and more bugsquatting

* chore(feature/pdo-sync): linting done

* feat/fix(feat/pdo-sync): Newsletter decrypt + ack

* merge (#946)

* fix: profilePictureUrl (#901)

* Update module to latest version  (#926)

* Update package.json

Update the module to the latest

* Add files via upload

* Fix: Readme use upsert events (#908)

* Fix: getUSyncDevices (#862)

* Update messages-send.ts

* Update messages-send.ts

* Update messages-send.ts

* Fix lint

* Fix lint

* fix(master): update linting workflow to node 20 (current LTS)

---------

Co-authored-by: Akhlaqul Muhammad Fadwa <75623219+zennn08@users.noreply.github.com>
Co-authored-by: Rizz2Dev <muhamad.rizki27483@smp.belajar.id>
Co-authored-by: Oscar Guindzberg <oscar.guindzberg@gmail.com>
Co-authored-by: Bob <115008575+bobslavtriev@users.noreply.github.com>

* chore(feature/pdo-sync): final linting

* fix(feature/pdo-sync): make replies optional

* feat(feat/pdo-sync): add <unavailable> handle

* feat(feature/pdo-sync): Fixed the issues with peer messages and implemented some more logic

* fix(feature/pdo-sync): Make progress optional

* fix(feature/pdo-sync): Nullify and defeat Message absent from node if it is resolved immediately

* feat(feature/pdo-sync): Export message absent from node and export PDO request ID with it

---------

Co-authored-by: Akhlaqul Muhammad Fadwa <75623219+zennn08@users.noreply.github.com>
Co-authored-by: Rizz2Dev <muhamad.rizki27483@smp.belajar.id>
Co-authored-by: Oscar Guindzberg <oscar.guindzberg@gmail.com>
Co-authored-by: Bob <115008575+bobslavtriev@users.noreply.github.com>
2024-08-14 12:07:27 +03:00
Akhlaqul Muhammad Fadwa 5bdfc63105 fix: profilePictureUrl (#901) 2024-07-12 04:04:01 +03:00
Bob d396a03e65 Feat: Mute unknown calls (privacy) (#872)
* Update Chat.ts

* Update chats.ts

* export

* fix sort
2024-07-03 10:34:27 +03:00
Rajeh Taher 5ffa3a51b6 fix(master): linting and making functionality better 2024-05-18 12:56:44 +03:00
vini 51f18d82c2 fix shouldIgnoreJid not receiving app state keys (#792) 2024-05-18 12:52:36 +03:00
Rajeh Taher ce325d1182 fix(master): linting warnings 2024-05-10 16:33:59 +03:00
Rajeh Taher 88cf6f5234 fix(master): linting 2024-05-10 16:24:20 +03:00
Rajeh Taher 72407e3025 linting 2024-05-06 18:19:50 +03:00
Rajeh Taher fbbb511fb8 fix(master): error in init queries 2024-05-06 18:18:15 +03:00
azudin b93d1f5bd7 Update chats.ts 2023-12-08 00:13:17 +08:00
azudin 9ce6e7b4e6 Update chats.ts 2023-12-08 00:01:10 +08:00
azudin 41321dc34e Update chats.ts 2023-12-07 23:55:09 +08:00
azudin 6f81ce9527 Update chats.ts 2023-12-07 23:51:22 +08:00
azudin 92dec36781 Update chats.ts 2023-12-07 23:44:51 +08:00
azudin 13fcf827f4 Update chats.ts 2023-12-07 23:41:46 +08:00
azudin d1b57cf990 Update chats.ts 2023-12-07 23:37:06 +08:00
azudin 0898c7cd76 Update chats.ts 2023-12-07 23:10:04 +08:00
Codeboss fe573b365c eslint final 2023-08-10 01:33:48 +03:00
Codeboss 67542c48ac eslint 2023-08-10 01:33:48 +03:00
Codeboss fea204ac26 Simplified 2023-08-10 01:33:48 +03:00
Emanuele Ingrosso a977d20310 Fix brackets in chats.ts 2023-08-10 01:33:48 +03:00
Emanuele Ingrosso 1d57f38323 Add "+" to the beginning of jids if not present in the onWhatsApp method
In Baileys 5.x a "+" was always added at the beginning of the jids provided to the onWhatsApp method. This was removed later in the 6.x version and has created a subtle problem.

Many phone numbers where correctly verified but for some reason french mobile number (starting with 336 or 337) always returned an undefined result (maybe there were problems with some other countries too, I couldn't verify).

Adding back the "+" (if missing) should fix the problem.
2023-08-10 01:33:48 +03:00
Samuel Scheit d570da19a4 Merge branch 'WhiskeySockets:master' into master 2023-05-31 18:12:43 +02:00
Adrien bb25723b6a fix: onWhatsApp query for multiple jids (#85) 2023-05-26 08:12:58 -03:00
SamuelScheit d713e2314d remove wip two factor 2023-05-19 10:24:55 +02:00
SamuelScheit e98e309b0d wip: two factor auth 2023-05-19 10:15:40 +02:00
Samuel Scheit d60f84a683 Merge branch 'master' into master 2023-05-19 10:13:54 +02:00
Rafael Garcia 3ac29e131d Slint fixes applied 2023-05-15 09:41:33 -05:00
Rafael Garcia 38f285760d feat(labels): modify chat utils 2023-05-14 12:44:19 -05:00