Commit Graph

536 Commits

Author SHA1 Message Date
vini
71082bf1b3 hotfix: always send acks even in case of errors (#1043) 2024-09-22 14:35:50 +03:00
vini
ed00a57c84 remove duplicated call reject event / add terminate tag (#1031)
* initial commit

* add terminate tag

* lint

* lint 2

* Update src/Socket/messages-recv.ts

* chore: linting

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2024-09-22 14:34:29 +03:00
Rajeh Taher
70f0321381 fix(master): New profile update/removal endpoint (inspired by #1048) 2024-09-22 14:32:05 +03:00
Cleiton Carvalho
c02b772de0 fix: Fixed contacts.update when received changed picture event (#979) 2024-08-20 01:47:35 +03:00
Leonardo Amaro
0011d61df1 Exporting getUSyncDevices and createNodeParticipants to socket-send api (#980)
Co-authored-by: Leonardo Amaro <=>
2024-08-20 01:46:57 +03:00
devlikeapro
09f8df445c fix: do not fetch group metadata for status (#986)
fixes #985
2024-08-20 01:43:49 +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
arthur simas
c32ea03de6 feat: emit WAMessageStubType.GROUP_CHANGE_DESCRIPTION event (#967) 2024-08-14 12:11:16 +03:00
Rajeh Taher
7c9f2ebd46 feat(feature/group-invite-v4): initial/final commit (#958) 2024-08-14 12:10:37 +03:00
Rajeh Taher
020add8b9b feature(feature/pin-message): initial/final commit (#959) 2024-08-14 12:09:29 +03:00
Bob
2dc1afa4ff Fix: cachedGroupMetadata (#846)
* Update Socket.ts

* Update Message.ts

* Update messages-send.ts

* Update index.ts

* Update messages-send.ts

* Update messages-send.ts

* Update messages-send.ts

* Update messages-send.ts

* Update Message.ts

* Update Socket.ts

* Update messages-send.ts

* Update messages-send.ts

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2024-08-14 12:08:36 +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
35f6d75cf8 fix(fix/buttons-deprecation): initial/final commit (#956) 2024-08-14 12:07:12 +03:00
Bob
d812c1ec45 Fix: getUSyncDevices (#862)
* Update messages-send.ts

* Update messages-send.ts

* Update messages-send.ts

* Fix lint

* Fix lint
2024-07-27 16:14:35 +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
Bob
baf8b3df00 Feat: Modified number action in group-participants.update (#858)
* Update GroupMetadata.ts

* Update messages-recv.ts

* Update process-message.ts
2024-07-03 10:34:06 +03:00
Bob
c576e9215c Fix: retry cache is not storing (#863)
* Update messages-recv.ts

* Update messages-recv.ts
2024-07-03 10:32:48 +03:00
vini
dbf25771a1 refactor: Change Sync Functions to Promises to Prevent Blocking Event Loop (#896)
* initial commit

* lint

* lint 2
2024-07-03 10:29:16 +03:00
Bob
13be112b18 Feat: others browsers in requestPairingCode() (#879)
* update

* l

* string

* added Safari

* Update getPlatformId

* Update getPlatformId (fix)
2024-06-30 06:10:50 +03:00
Bob
61afe1cdc1 Fix linting generateMessageIDV2 (#871)
* Update messages-send.ts

* Update generics.ts
2024-06-16 15:33:01 +03:00
Rajeh Taher
0cc888e87b fix(master): generate new message id 2024-06-12 23:12:59 +03:00
Rajeh Taher
d7037cf6fa fix(fix-routing-info): initial commit (#837) 2024-06-03 00:59:09 +03:00
vini
ffec4af454 feat: add event that handles join approval requests (#802)
* initial commit

* lint

* add type in method

* add more actions / fixes participant jid / rename event

* fixes

* more fixes

* fix typing

* change 'reject' to 'rejected'

* chore:linting

---------

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2024-06-03 00:10:36 +03:00
allburov
fda4186306 Use message-receipt.update for status@broadcast events (#833) 2024-06-01 10:31:04 +03:00
allburov
b2d577409e Fix linter != to !== (#834) 2024-06-01 10:30:45 +03:00
ShellTear
fdf614ea6e Update messages-recv.ts 2024-05-18 21:56:41 +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
7d80bf0ea2 feat(add-logger): initial commit (#777) 2024-05-15 18:36:20 +03:00
Rajeh Taher
0eaa5af909 feat(add-routing-info): initial commit (#773) 2024-05-15 18:34:37 +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
Javier Cuevas
8c61f6719f Fix typo: onMessageRecieved -> onMessageReceived (#652)
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
2024-04-28 14:08:10 +03:00
Javier Cuevas
bb9cc01069 Fix logging of send/recv xml nodes with pino (#653) 2024-04-28 14:05:40 +03:00
Rajeh Taher
306e1c1355 WEB WAM IMPLEMENTATION!!!!! (#708)
* feat(WAM): initial commit

* fix(wam-development): I made a whoopsie

* Update Example/example.ts

Co-authored-by: Javier Cuevas <javiercr@gmail.com>

---------

Co-authored-by: Javier Cuevas <javiercr@gmail.com>
2024-04-28 14:03:24 +03:00
Antônio Roberto Júnior
e52570bbd7 add linkedParent in groupMetadata (#734)
* Update GroupMetadata.ts

* Update groups.ts
2024-04-28 14:02:49 +03:00
Codeboss
3b87d74f04 Fix pfp change notification (#323)
* Crash if chat is already deleted

* Crash if chat is already deleted (#321) (#322)

* Update messages-recv.ts

* Update make-in-memory-store.ts

* Update messages-recv.ts

* Update make-in-memory-store.ts

* Fix store errors

* Fix hash issue

* Fix eslint

* Update messages-recv.ts

* Update messages-recv.ts

* ESLint final

* no more eslint errors!
2024-04-28 13:44:53 +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
767af0b688 fix(retry): final commit: linting 2024-03-13 03:30:20 +02:00
Rajeh Taher
4d4dd58e06 thank lint 2024-03-12 23:58:36 +02:00
Rajeh Taher
99cd10b621 fix logic 2024-03-12 23:56:38 +02:00
Rajeh Taher
b66b362512 Update src/Socket/messages-recv.ts 2024-03-12 23:53:23 +02:00
Rajeh Taher
9d3dcfd08b fix(missing-messages): linting fix 2024-03-12 20:17:39 +02:00
Rajeh Taher
c264633291 fix(missing-messages): linting and bug 2024-03-12 07:25:45 +02:00
Rajeh Taher
8777f7fa70 fix ack 2024-03-12 06:23:56 +02:00
Rajeh Taher
087b8733fc Update messages-recv.ts 2024-03-12 06:16:17 +02:00
Bob
c41be3ac4f feat: If need approval to join the group in groupMetadata (#533)
* If need approval to join the group

* If need approval to join the group

* Update groups.ts

* Update groups.ts

* fix lint

* Update groups.ts

* Update groups.ts

---------

Co-authored-by: Bob <115008575+FortisEtMagnus@users.noreply.github.com>
Co-authored-by: Bob <115008575+bobpetrov@users.noreply.github.com>
2024-01-19 18:31:35 +02:00