João Lucas de Oliveira Lopes
f829b6d7a8
fix: extract LID-PN mappings from conversation objects in history sync ( #2282 )
...
* fix: extract LID-PN mappings from conversation objects in history sync
* fix: extract PN from userReceipt when pnJid is missing for LID chats
2026-01-22 15:00:41 +02:00
Rajeh Taher
bfde86bce7
example: cleanup
2026-01-22 14:42:56 +02:00
Rajeh Taher
0826895c6b
history: add proper logging support in history
2026-01-22 14:34:46 +02:00
Rajeh Taher
d4e5b4167d
history: fortify contact data
2026-01-22 14:13:33 +02:00
João Lucas de Oliveira Lopes
a89736f89d
fix: extract LID-PN mappings from history sync phoneNumberToLidMappings ( #2268 )
2026-01-20 12:39:29 +02:00
Cassio Santos
5c456e514e
fix: cannot send message on new Whatsapp Business limited accounts ( #2080 )
...
* fix: cannot send message on new Whatsapp Business limited accounts
* chore: add woraround to resend the message on 475 errors
* fix: lint
* fix: add handler
* fix: lint
* Update src/Socket/messages-send.ts
---------
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
2025-11-19 15:18:19 +02:00
Rajeh Taher
abf5af0e72
history: improve history sync and support new payload
2025-11-07 00:16:15 +02:00
Rajeh Taher
334977f983
general: revert #1665
2025-10-03 18:14:30 +03:00
João Lucas de Oliveira Lopes
fb12f6d9d3
refactor: replace axios with fetch API and update related types ( #1666 )
2025-09-28 05:52:43 +03:00
João Lucas de Oliveira Lopes
3b46d43beb
fix: harden Protobuf Deserialization and Refactor Utilities ( #1820 )
...
* refactor: reorganize browser utility functions and improve buffer handling
* fix: harden protobuf deserialization and clean up code
* refactor: simplify data handling in GroupCipher and SenderKey classes
* fix: Ensure consistent Buffer hydration and remove redundant code
* refactor: update decodeAndHydrate calls to use proto types for improved type safety
2025-09-26 04:45:30 +03:00
João Lucas de Oliveira Lopes
421ca2eb92
refactor(types): Strengthen Type Safety in Signal Handling & Core Utilities ( #1764 )
...
* refactor(types): Strengthen Type Safety in Signal Handling & Core Utilities
* chore: revert typescript and move types to libsignal
* chore: update libsignal dependency resolution and checksum
* fix: a minor regression
* chore: update libsignal resolution and checksum
2025-09-13 15:24:57 +03:00
Rajeh Taher
20693a59d0
lid, wip: Support LIDs in Baileys ( #1747 )
...
* lid-mapping: get missing lid from usync
* lid-mapping, jid-utils: change to isPnUser and store multiple mappings
* process-message: parse protocolMsg mapping, and store from new msgs
* types: lid-mapping event, addressing enum, alt, contact, group types
* validate, decode: use lid for identity, better logic
* lid: final commit
* linting
* linting
* linting
* linting
* misc: fix testing and also remove version json
* lint: IDE fucking up lint
* lid-mapping: fix build error on NPM
* message-retry: fix proto import
2025-09-08 10:03:28 +03:00
Rajeh Taher
8dc852ee89
proto: fix proto generation, tsc: fix node imports of compiled code
2025-07-19 23:16:35 +03:00
Rajeh Taher
787aed88b8
project: Move to ESM Modules
2025-07-17 13:54:17 +03:00
fwidjaja94
34188a3a22
fix: remove chat attribute deletions in history.ts ( #1590 )
2025-07-04 17:29:04 -03:00
devlikeapro
b8464d3665
Add lid to Contact - contact sync, history sync, group participants ( #1472 )
2025-06-18 08:08:09 -03:00
canove
fa706d0b50
chore: format everything
2025-05-06 12:10:19 -03:00
Rajeh Taher
18ac07df8e
lint: 0 warnings left
2024-10-14 05:15:10 +03:00
vini
fda2689169
fix: messaging-history.set event not emitting syncType and progress / add PDO request id ( #1042 )
...
* initial commit
* add PDO request id
2024-09-22 14:34:43 +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
Adhiraj Singh
5e28d23460
fix: msgs not appearing in chat
2022-11-03 21:30:05 +05:30
azudin
eb2590bc6c
Update history.ts ( #2212 )
...
* Update history.ts
Include FB business in contact
* Improve contact history
Update verifiedName
2022-10-01 10:37:44 +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
Adhiraj Singh
ae3ac78dc3
feat: pass axios config to all axios instances
2022-09-19 17:46:43 +05:30
Adhiraj Singh
3a891e071e
feat: map all WA media types
2022-09-15 15:09:51 +05:30
Adhiraj Singh
c20865dff1
fix: correctly set latest message in chat + lastMsgRecvTimestamp
2022-09-11 11:07:12 +05:30
azudin
f11c8c401f
Fixed chats recent message
...
Include message either fromMe is false or true
2022-09-11 11:07:12 +05:30
Ilya Borodin
4f1d9492c5
Changed concat to push
2022-08-20 23:21:56 +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
d04718e27a
feat: add desktop + full history sync opts
2022-07-26 13:30:01 +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
ee7ed1d4e5
feat: include last message in chat
2022-06-24 11:46:47 +05:30
Adhiraj Singh
5cb71ac862
feat: more accurately handle app state sync
2022-06-11 12:02:08 +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
bf8ff6d253
fix: readonly chats on sync
2022-05-09 16:03:53 +05:30
Adhiraj Singh
93262b38f4
fix: history sync missing contacts
2022-03-07 18:17:43 +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
793b23cb21
refactor: history processing
...
1. fixes issue when some chats/messages are not synced
2. adds info about whether the history chunk is the latest
2022-01-16 12:51:08 +05:30
Adhiraj Singh
fdfe310fdf
implement encrypting app patches
2021-09-28 19:22:39 +05:30
Adhiraj Singh
f267f27ada
finalize multi-device
2021-09-22 22:19:53 +05:30