Rajeh Taher
538d3e4da7
move to create instead of fromObject
2025-09-07 14:29:45 +03:00
Gustavo Quadri
0043f8be21
Add: LID support with lid-map and migrations of sessions ( #1694 )
...
* fix: add lid-map logic
* fix: lint and simplified version
* fix: single device migration
* fix: lid map discovery
* fix: lint
* fix: lid migration in socket connection
* fix: lint
* fix: decode-wa-message consistency
* fix: yarn lock
* fix: lint
* fix: retry logic
* fix: logger level
2025-09-07 14:12:24 +03:00
Gustavo Quadri
8f21a67e4a
fix: sync pre-keys on socket start and add specific pre-key error approach ( #1663 )
...
* fix: sync prekeys when storage mismatch
* fix: verify if current pre-key exists instead of matching
* add: pre-keys error specific approach
* fix: lint
* fix: lint
2025-09-07 14:11:50 +03:00
João Lucas de Oliveira Lopes
0fbce52fd3
fix(socket): Prevent crashes from timeouts and fix memory leak ( #1627 )
2025-09-07 14:11:32 +03:00
João Lucas de Oliveira Lopes
d878f01efb
new testing proposal ( #1547 )
...
* feat: new testing proposal
* chore: pr review
2025-09-07 14:11:17 +03:00
João Lucas de Oliveira Lopes
9573d5cbb7
Fix/signal group sender message keys init ( #1731 )
...
* fix(signal-group): initialize senderMessageKeys when deserializing SenderKeyState
* test(signal-group): add regression test for missing senderMessageKeys initialization
2025-09-07 14:10:56 +03:00
Matheus Filype
d2adbaf3fc
fix: message retries loop ( #1641 )
...
* fix: improve message resend logic by adding checks for message IDs
* Revert "fix: improve message resend logic by adding checks for message IDs"
This reverts commit c03f9d8e6fc6cbfbb9d1f8f67c169700e704213d.
* fix: enhance message resend logic by adding checks for message IDs
* fix: adjust message resend logic to allow maximum retry count
2025-09-07 14:10:39 +03:00
Samuel Rodrigues Almeida Costa
54a4548c1b
Update decode-wa-message.ts ( #1654 )
...
When the cell phone connected to the instance (Baileys) sends a message to a contact (fromMe = true), the senderPn comes as undefined. This fix fixes this problem temporarily.
2025-09-07 14:08:41 +03:00
Lucas Fochesatto
2f2c1dc25e
Feat: Allow creating, linking, and unlinking groups from a community ( #1729 )
...
* feat: create group inside a community
* feat: link and unlink groups to a community
2025-09-07 14:08:34 +03:00
vini
50fc83b008
feat(business): change profile/cover photo and manage quick replies ( #1724 )
2025-09-07 14:08:26 +03:00
vini
084761dc31
feat: eventMessage sending / call link creation ( #1677 )
2025-09-07 14:08:18 +03:00
João Lucas de Oliveira Lopes
4d4339dae6
feat(WAProto): Optimize protobuf generation for 80%+ bundle size reduction ( #1665 )
...
* chore: remove comments and veirfy from generated proto files (improve size)
* refactor: replace fromObject with create for proto message instantiation and flag no beautiful
* chore: lint issues
2025-09-07 14:08:11 +03:00
Gustavo Quadri
478b08bf79
Fix: prevent zero padding in writeRandomPadMax16 causing message delivery failures ( #1706 )
2025-08-26 06:11:58 -03:00
Zisa
be3d869cae
feat: event buffer should use logger.debug instead of logger.info ( #1689 )
...
The `logger.info` makes Baileys' log verbose.
The flush is executed constantly and could be more useful during troubleshooting
sessions with log level = debug
2025-08-11 08:25:37 -03:00
vini
aba3ecf969
feat: add enable/disable link preview privacy ( #1675 )
2025-08-07 01:50:24 +03:00
Renato Freitas
260311e6a2
Fix call offer from lid call ( #1670 )
...
* Fix call offer from lid call
* check prettier
2025-08-07 01:21:20 +03:00
João Lucas de Oliveira Lopes
812e53e4eb
Refactor: Fix Event Buffer Deadlock with State Machine ( #1633 )
...
* feat: implement state machine for chat synchronization and buffer management
* test: Add Jest configuration and tests for connection deadlock handling
- Created a Jest configuration file to set up testing environment.
- Implemented utility functions for creating isolated authentication sessions and mocking WebSocket connections.
- Added a test case to ensure that the connection does not deadlock when history sync is disabled, verifying the correct handling of message events.
* feat: add GitHub Actions workflow for running tests
* chore: sort import lint
* fix: implement timeout handling for AwaitingInitialSync state in chat socket, maybe fix memory leak
* feat: enhance chat synchronization by refining AwaitingInitialSync handling and adding history sync checks
2025-08-07 01:15:41 +03:00
M Ilham Ari Pahmi
1a721bb242
fix proto import ( #1653 )
2025-07-31 19:58:46 -03:00
João Victor Souza
0c20166a45
feat: community support ( #1157 )
...
* feat: communities
* feat: update makeCommunitiesSocket
* chore(release): v6.7.10
* fix: ajust create communitie
* feat: update communities
* revert: package.json
* fix: Revert CHANGELOG.md
* fix: Revert CHANGELOG.md
* fix: Revert CHANGELOG.md
* fix: revert package-lock.json
* fix: revert package-lock.json
* fix: revert yarn.lock
* fix: remove comment
* restore yarn.lock
* fix: improve type imports and formatting in communities.ts
* fix: remove trailing semicolon in baileys-version.ts
* fix: Delete src/Defaults/baileys-version.ts
---------
Co-authored-by: João Lucas <jlucaso@hotmail.com >
2025-07-30 09:15:56 -03:00
João Lucas de Oliveira Lopes
8d2cdbcf98
Fix regression import attribute ( #1642 )
...
* Revert "Replace deprecated assert with import attributes syntax (#1619 )"
This reverts commit f61221f73a .
* fix: update import syntax for bailey's version JSON
2025-07-29 10:20:02 -03:00
steflsd
f61221f73a
Replace deprecated assert with import attributes syntax ( #1619 )
...
* replace assert with
* assert with
* more ts way for version
* fix: remove JSON import assert syntax for Node.js compatibility
- Replace JSON imports with generated .js imports
- Fixes compatibility between Node.js versions (assert vs with syntax)
- Maintains same functionality while avoiding syntax issues
2025-07-27 00:59:54 +03:00
Nurutomo
cdd2f0d53f
fix: correcting if logic for contextInfo ( #1628 ) ( #1629 )
...
* fix: correcting if logic for contextInfo
* fix: typing of the logic
[BUG] Can't mention number/someone
Fixes #1628
* lint: whitespace issues
2025-07-27 00:58:14 +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
29f0ac83f8
tsc: fix builds & fix type errors
2025-07-19 17:16:07 +03:00
suhwr
97dfccf9fe
Fix group size metadata ( #1600 )
...
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
2025-07-19 00:28:01 +03:00
Rajeh Taher
90781ce0f2
eslint: upgrade to version 9 + tests: remove tests
2025-07-18 22:30:50 +03:00
Borewit
241fe3e691
Update to music-metadata from version 11.3.0 to 11.7.0 ( #1607 )
...
Remove `with { 'resolution-mode': 'import' }` in type import.
Co-authored-by: Borewit <Borewit@users.noreply.github.com >
2025-07-17 15:20:38 +03:00
Borewit
df303c8d43
Update to music-metadata from version 7.12.3 to 11.3.0 ( #1355 )
...
Co-authored-by: Borewit <borewit@users.noreply.github.com >
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
2025-07-17 14:25:28 +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
vini
31cb8d78a6
fix: remove static jimp import ( #1592 )
2025-07-09 11:50:52 -03:00
DevAstro
44c5e16c05
add owner country code attribute ( #1565 )
...
name says it all
2025-07-05 23:59:24 +03:00
DevAstro
3cdb0f4dd9
Bump Jimp && Sharp ( #1575 )
...
* Bump Jimp && Sharp
Upgrade and use the latest version of jimp and sharp libraries
* lint
2025-07-05 23:58:57 +03:00
Rajeh Taher
719a57b275
Added message range to the clear chat action ( #1534 )
...
* chat-utils: Added message range to the clear chat action
* Chat: add field to type (thanks @Kiss from discord)
* Update src/Utils/chat-utils.ts
2025-07-05 23:58:44 +03:00
João Lucas de Oliveira Lopes
92b4c68de0
fix: Handle data: URIs in getStream to prevent server crash ( #1524 )
2025-07-04 19:25:19 -03:00
Cassio Santos
4ccec1f6ce
fix: do not throw error on socket closed while opening ( #1576 )
2025-07-04 17:31:46 -03:00
fwidjaja94
34188a3a22
fix: remove chat attribute deletions in history.ts ( #1590 )
2025-07-04 17:29:04 -03:00
Pedro Dias
691b40a8f7
uSync error for disappear_mode ( #1589 )
...
Fixed the problem that occurred when pushing the disappear_mode.
2025-07-04 17:28:52 -03:00
Cassio Santos
9b5afc8c6b
fix: add lid sutff to message.key type ( #1586 )
...
* fix: add lid sutff to message.key type
* feat: add view once information to msg key
2025-07-03 17:08:58 -03:00
João Lucas de Oliveira Lopes
8391c02e0b
[READY FOR MERGE] Implement newsletter ( #1532 )
...
* feat: implement basic newsletter functionality with socket integration and event handling
* feat: enhance media handling for newsletters with raw media upload support
* feat: working updatePicture, removePicure, adminCount, mute, Unmute
* fix: fetchMessages
* chore: cleanup
* fix: update newsletter metadata path and query ID for consistency. newsletterMetadata works now
* chore: enhance newsletter metadata parsing and error handling
* fix: correct DELETE QueryId value in Newsletter.ts
* chore: split mex stuffs to own file
* chore: remove as any
2025-06-30 23:22:09 -03:00
devlikeapro
5ffb19120d
Show poll on the sender device ( #1567 )
...
fix #675
2025-06-30 16:15:11 -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
João Lucas de Oliveira Lopes
591c98f3e6
fix: validate media URL before downloading content from message ( #1560 )
2025-06-30 16:02:40 -03:00
João Lucas de Oliveira Lopes
210338c747
fix: handle potential null values when creating Buffers from signing keys ( #1558 )
2025-06-25 14:58:13 -03:00
Alι Aryαɴ
42112ac389
chore: add participantPn to WAMessageKey ( #1540 )
2025-06-25 09:35:56 -03:00
DevAstro
60577cf8d3
allow custom pairing code ( #1550 )
2025-06-25 09:05:12 -03:00
João Lucas de Oliveira Lopes
38b4ada997
fix: handle string format for signing keys in SenderKeyState ( #1552 )
2025-06-24 18:50:57 -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
João Lucas de Oliveira Lopes
482db6edc5
refactor: migrate WASignalGroup to TypeScript and remove deprecated files ( #1320 )
...
* refactor: migrate WASignalGroup to TypeScript and remove deprecated files
* chore: remove WASignalGroup JavaScript files from package.json
* refactor: update SenderKeyStore and SenderKeyStateStructure interfaces to export and add deserialize method. Fix types
* chore: lint issue
* refactor: improve constructor type checking and getSeed method in SenderChainKey
* refactor: update key handling to use Buffer for improved consistency
* signal: consistent naming and dir structure + add some missing types
* fix: lint issues
---------
Co-authored-by: Rajeh Taher <rajeh@reforward.dev >
2025-06-21 18:02:15 +03:00