Commit Graph

40 Commits

Author SHA1 Message Date
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
Alι Aryαɴ
42112ac389 chore: add participantPn to WAMessageKey (#1540) 2025-06-25 09:35:56 -03:00
Cassio Santos
6b4dce897d feat: add lid to message key (#1510)
* feat: add lid to message key

* chore: review suggestion
2025-06-11 08:39:19 -03:00
canove
fa706d0b50 chore: format everything 2025-05-06 12:10:19 -03:00
canove
21c5b4c713 chore: lint 2025-04-23 10:07:37 -03:00
canove
36456d6db6 fix: proper send receipt to Meta Ia trigger messages to avoid offline pending notifications hang 2025-04-23 09:38:36 -03:00
Rajeh Taher
99142aac96 proto: update manually to 2.3000.1020608496 2025-03-06 04:22:17 +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
3fca643d92 messaging: fix the hangs caused by the 66e error 2025-01-30 23:31:25 +02:00
Rajeh Taher
18ac07df8e lint: 0 warnings left 2024-10-14 05:15:10 +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
Rajeh Taher
6fe7401337 Update make-in-memory-store.ts (#755)
* Update make-in-memory-store.ts

* fix logger error (#754)

* Update make-in-memory-store.ts

* Update make-in-memory-store.ts

* fix linting

* will we ever fix linting?

* final change

* test

* simplified

* final fix

* comments

* linting
2024-05-06 17:41:43 +03:00
Rajeh Taher
3967e5b2a6 chore: linting 2024-04-29 10:45:31 +03:00
felipealvesbezerra
b55749f694 hotfix message in group (#622)
hotfix message in group, decrypt error.
Tray cath correction because some events require this function.
2024-04-28 14:13:05 +03:00
Rajeh Taher
9d2f9ed4e3 fix(missing messages): revert to normal (#732)
* revert to normal

* International community, please do not condemn me for this

* Update decode-wa-message.ts

* Update src/Utils/decode-wa-message.ts
2024-04-28 13:39:24 +03:00
Rajeh Taher
c1fa5a13c3 fix fromMe on receipts and messages, missing notifications ! 2023-10-01 14:56:09 +00:00
Rajeh Taher
ef8d1a09fb support mesasge input from lid 2023-10-01 14:40:40 +00:00
Rajeh Taher
16bd627685 help the tslint gods have come for my head, i commited the great taboo 2023-09-30 21:32:30 +03:00
Rajeh Taher
e15d2ffe30 Update decode-wa-message.ts 2023-09-30 21:29:40 +03:00
Adhiraj Singh
5b2b037c76 chore: log full decrypt trace 2023-03-18 17:40:11 +05:30
Adhiraj Singh
fe1d0649b5 feat: add signal repository + tests 2023-03-18 12:25:47 +05:30
Adhiraj Singh
4f27a2b3f4 feat: add "decodeMessageNode" util 2023-01-18 13:43:13 +05:30
Adhiraj Singh
a58b73fba5 feat: allow ignoring jids 2022-11-11 09:31:49 +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
40a1e268aa feat: add "strictNullChecks" 2022-07-09 10:20:07 +05:30
Adhiraj Singh
fd80448fcb feat: handle verified name in message 2022-06-26 10:57:49 +05:30
Adhiraj Singh
f44335db8d chore: better error for recipient error 2022-06-15 15:05:58 +05:30
Adhiraj Singh
7b900c174d chore: more logging 2022-06-15 13:55:23 +05:30
Adhiraj Singh
59f834ca39 fix: handle receipts more accurately
1. only send timestamp with read receipts
2. use unix timestamp in seconds instead of millis
3. use "sender" receipts for own messages
2022-04-03 11:27:13 +05:30
Adhiraj Singh
334f85f8c5 feat: handle "peer_msg" receipts 2022-04-02 15:45:09 +05:30
Adhiraj Singh
de7d1002a9 lint: stricter linting rules 2022-03-01 16:32:14 +05:30
Adhiraj Singh
913b38493c fix: throw error if no decrypt-able message found 2022-02-17 10:32:51 +05:30
Adhiraj Singh
1f2a6641f3 feat: mutex processing in a chat to preserve order of events 2022-01-22 14:07:06 +05:30
Adhiraj Singh
8f11f0be76 chore: add linting 2022-01-19 15:54:02 +05:30
Adhiraj Singh
67f3ddeaff chore: remove null status from not fromMe msgs 2022-01-07 21:24:29 +05:30
Adhiraj Singh
6c08f0cd76 fix: incorrect from me 2022-01-07 21:15:27 +05:30
Adhiraj Singh
6a2cb5a413 refactor: message decoding
1. removes redundant receipt (was exactly the same as delivery receipt without the timestamp)
2. decodeWAMessage now returns a proper message struct
3. each message stanza results in exactly one message decoded
2022-01-07 00:04:17 +05:30
Adhiraj Singh
f267f27ada finalize multi-device 2021-09-22 22:19:53 +05:30
Adhiraj Singh
89cf8004e9 Wrap up connection + in memory store 2021-07-09 20:35:07 +05:30