Commit Graph

1408 Commits

Author SHA1 Message Date
canove
6d4ce2cb18 chore: avoid unhandled promise timeout errors 2025-04-24 13:38:43 -03:00
canove
2dbfb085d5 chore: avoid unhandled promise timeout errors 2025-04-24 13:38:00 -03:00
canove
2382fb8723 chore: avoid unhandled promise timeout errors 2025-04-24 13:37:03 -03:00
canove
9149e58f78 chore: remove log 2025-04-23 16:04:26 -03:00
w3nder
f4dc41eda1 fix: simplify domainType 2025-04-22 21:30:39 -03:00
w3nder
131aeadd45 fix: lint 2025-04-22 19:45:20 -03:00
w3nder
47540e961e fix: readAdJid domainType
jid = 0 and 128
lid = 1 and 129
2025-04-22 15:58:25 -03:00
Rajeh Taher
c037f68c2d socket: include lid in onWhatsApp response 2025-04-09 20:17:53 +03:00
Rajeh Taher
642bfd825a usync: add lid protocol 2025-04-09 20:17:53 +03:00
Rajeh Taher
1ab7f9b561 usync: add bot profile protocol to query class 2025-04-09 20:17:53 +03:00
AstroX11
ae5a7d14c3 fix: makeCacheableSignalKeyStore logger optional (#1332) 2025-04-09 02:52:20 +03:00
João Lucas de Oliveira Lopes
c2cf49cd68 refactor: remove unused dependencies and clean up type exports (#1319) 2025-04-09 02:51:33 +03:00
João Lucas de Oliveira Lopes
bca5102819 fix: failed to send message to self, add checks for empty strings and invalid nodes (#1322)
* fix: failed to send message to self, add checks for empty strings and invalid nodes

* fix: update nibble and hex checks to handle optional string parameters
2025-04-09 02:51:15 +03:00
Nurutomo
d5dc758874 fix #1331 (#1334)
* fix for groups

* lint: fix linting

* messages-send: jids checking
2025-04-02 13:26:04 +03:00
Rajeh Taher
f19ffa7cca messages-send: rigid checks on per-jid patch (fixes peer messages)
Peer messages were causing an error here since they are only sent to the device (no otherJids)
2025-03-20 01:22:50 +02:00
Rajeh Taher
c96be39829 messages-recv: stopgap to prevent errors from msmsg (Meta AI) 2025-03-19 00:45:43 +02:00
Rajeh Taher
f56cb4f945 wabinary: check for bot jid 2025-03-19 00:45:15 +02:00
Rajeh Taher
98ecd2a653 usync, chat: get bot profile info and get bot list 2025-03-19 00:44:53 +02:00
João Lucas de Oliveira Lopes
88e9cfa4e3 refactor: replace async-lock with async-mutex (#1304)
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2025-03-15 00:45:30 +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
a29138758c socket, binary, usync: fix linting 2025-03-14 23:38:53 +02:00
AstroX11
aa0579d12d adjustment(remove non existentant exports) (#1305) 2025-03-10 23:33:40 +02:00
Rajeh Taher
64d09c70b4 store: remove built-in store 2025-03-10 17:35:46 +02:00
Rajeh Taher
1c2af09b03 socket,config: deprecate printQRInTerminal option
This was done to reduce dependencies
2025-03-10 15:08:50 +02:00
Rajeh Taher
e1aadc5546 feat: add per-jid patching
This does not work in groups
2025-03-10 14:51:13 +02:00
Rajeh Taher
f92291bb8e crypto: improve older Node version and browser compatibility 2025-03-06 21:01:26 +02:00
Rajeh Taher
daade2a2b9 defaults: remove dead file 2025-03-06 04:26:12 +02:00
Rajeh Taher
99142aac96 proto: update manually to 2.3000.1020608496 2025-03-06 04:22:17 +02:00
ShellTear
4a90ea4688 fix lint 2025-03-04 04:08:09 +02:00
ShellTear
fccca8ab30 fix(sync): complete unfinished async implementation
Added 'await' to callers of 'makeLtHashGenerator.finish' to handle its Promise return after 'lt-hash.ts' was made asynchronous  by replacing old sync hkdf implementation.

Fixes #1286
2025-03-04 04:05:52 +02:00
M Ilham Ari Pahmi
af17232611 fix: resolve DataView constructor error in lt-hash (#1279) 2025-03-02 12:08:43 +02:00
João Lucas de Oliveira Lopes
8083754621 refactor: turn hkdf functions to async and remove extra deps (#1272)
* refactor: remove futoin-hkdf dependency and update hkdf implementation

* refactor: use crypto subtle and update functions to async

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2025-03-01 18:31:48 +02:00
contato.mateusfr@gmail.com
21f8431e61 Dependency Inversion for Logger (#1153)
* feat: interface "ILogger" created
feat: interface "ILogger" used instead of pino logger
feat: "PinoLoggerAdapter" created to implement "ILogger" interface

* feat: PinoLoggerAdapter removed
feat: ILogger mapping the features we're using from pino

* fix: sort imports

---------

Co-authored-by: Mateus Franchini de Freitas <contato.mateusfr@outlook.com>
Co-authored-by: Mateus Franchini de Freitas <mfranchini@domtec.com.br>
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2025-03-01 18:30:51 +02:00
Rajeh Taher
447e648958 --no-edit 2025-03-01 18:30:09 +02:00
Rajeh Taher
49eeb7556d socket,utils: fix imports 2025-03-01 18:26:20 +02:00
Matheus Alves
ae60f3fe62 feat: add last message in chat.update event if is real message (#1203) 2025-03-01 18:21:22 +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
João Lucas de Oliveira Lopes
fdce228798 refactor: replace pbkdf2 with Web Crypto API for derivePairingCodeKey function (#1276) 2025-03-01 18:17:43 +02:00
Wender Teixeira
36690fc462 fix: update fetchLatestWaWebVersion to retrieve client revision from new endpoint (#1234) 2025-03-01 18:17:34 +02:00
contato.mateusfr@gmail.com
cfbfcd8e14 fix: sending SERVER_ACK to messages.update (#1101)
Co-authored-by: Mateus Franchini de Freitas <mfranchini@domtec.com.br>
2025-03-01 18:17:29 +02:00
Jared Wray
588de6ce10 fix: migrating to @cacheable/node-cache as it is maintained (#1074) 2025-03-01 18:15:49 +02:00
Claudemir Todo Bom
da26cf5285 Fix link preview being generated for email addresses (#1231)
* link-preview: only match https urls without auth info

* fix regex to find url on strings - fix #1230
2025-03-01 18:15:33 +02:00
AstroX11
89b28a438b feat: add Id support for desktop (#1240)
* feat: add Id support for desktop

This commit adjusts the ID length check for desktop, fixing the issue where some desktop IDs were incorrectly classified as "unknown."

Baileys stopped identifying if a message was from WA Desktop (Based on my observations last Year).

This adjustment addresses this issue.

* redundancy removed

* fix: linting
2025-02-24 03:24:44 +02:00
Rajeh Taher
aeabecdf67 messages-media: fix waveform import 2025-02-16 18:36:59 +02:00
Rajeh Taher
b8470061c3 process-message: Flip message key of edit to find the original message 2025-02-16 15:20:32 +02:00
Lucas Maia
b78902fc8d messages: fix EPERM error by verifying temp file removal when sending images (#1227)
* messages: add verification to remove temp file, solve EPERM operation not permitted

* fix lint on messages

* another try to fix lint for pr health

* Fixed, too many changes were breaking the code; this should be enough

* another try to fix this
2025-02-02 11:52:55 +02:00
Rajeh Taher
17d9a7fdb4 process-message: Add messages.update event for edited messages 2025-02-01 14:17:21 +02:00
Rajeh Taher
b1fcab0216 messages-recv,encode: Implement proper fixes 2025-01-31 23:59:04 +02:00
Rajeh Taher
fcbae0e3f2 wabinary: fix misinterpreted string encoding as hex (#1224, @vphelipe)
Thanks @vphelipe for providing the fix in #1224
2025-01-31 21:22:18 +02:00
Rajeh Taher
9f61f3acf0 messages-recv: DISABLE MESSAGE RESEND 2025-01-31 20:46:13 +02:00