Commit Graph

149 Commits

Author SHA1 Message Date
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
SamuelScheit a6640bb0f6 fix: mobile app state key + message events 2023-05-14 17:45:20 +02:00
SamuelScheit 07562c2204 feat: fetch groups if ib:dirty 2023-05-14 17:45:20 +02:00
✬Ravindu Manoj✬ ✓ 13810ec7ea feat: privacy settings update functions and profile pic remove function (#5) 2023-05-06 15:10:43 -03:00
Adhiraj Singh 9d8aa67f22 feat: process pollupdate automatically 2023-03-02 22:43:31 +05:30
Adhiraj Singh 7d5aca54e9 chore: lint 2023-03-02 17:41:56 +05:30
Adhiraj Singh 5fb9f12b31 chore: use cache instead of permanent maps 2023-02-21 11:35:32 +05:30
Adhiraj Singh 572d0f1dd6 feat: implement tc token handling
TC token is required in certain cases to receive presence updates on chats
2022-12-11 15:48:26 +05:30
Adhiraj Singh a5d263d31b fix: correctly sync app state 2022-12-09 10:15:58 +05:30
Adhiraj Singh 30e2cb5c4c refactor: impl counter based event buffer
1. counter based event buffer keeps track of the number of blocks that request event processing in buffer
2. event buffer only releases events when the last block completes (i.e. counter = 0)

this approach is far simpler than the promised based garbled crap I wrote, should also prevent the deadlock issues it introduced 🙏
2022-12-02 11:31:42 +05:30
Adhiraj Singh 190e6d6bd6 chore: ignore presence updates as well 2022-11-11 09:38:31 +05:30
Adhiraj Singh 4aadc9dc6c fix: add option for appStateMacVerification 2022-11-08 22:33:53 +05:30
Adhiraj Singh f892a1e81f fix: duplicate mutation release on failed patch 2022-11-08 22:28:27 +05:30
Adhiraj Singh e1fc22b3d3 feat: handle delayed myAppStateKeyId 2022-11-07 20:46:01 +05:30
Adhiraj Singh 05d1fc9b78 chore: handle irrecoverable error 2022-11-07 17:33:50 +05:30
Adhiraj Singh 2a8ce563a2 chore: remove redundant newMutations log 2022-11-06 19:51:45 +05:30
Adhiraj Singh d0330d1863 refactor!: cleaner message history sync
This is a breaking change,
1. three events (chats.set, contacts.set, messages.set) are now just one `messaging-history.set` event
2. no need to debounce for app state sync
3. added a new "conditional" chat update to allow for correct app state sync despite not having the chat available on hand
2022-09-29 16:32:57 +05:30