Commit Graph

461 Commits

Author SHA1 Message Date
dependabot[bot]
9897bacb64 Bump ws from 7.4.4 to 7.4.6 (#504)
Bumps [ws](https://github.com/websockets/ws) from 7.4.4 to 7.4.6.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.4.4...7.4.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-04 23:03:57 +05:30
ファイズ
0e2961981a Add support for groupV4Invite (#498) 2021-06-04 23:03:43 +05:30
Hitesh Yadav
eb55760eac Updating README for fixes in event type. (#480) 2021-05-05 13:22:24 +05:30
Adhiraj Singh
d32b555306 update forwarding copy mechanism 2021-05-01 12:31:36 +05:30
Adhiraj Singh
66fb931fa3 WAChat update 2021-04-29 23:17:09 +05:30
Adhiraj Singh
1d31b7a20c emit update on metadata 2021-04-29 23:15:31 +05:30
Adhiraj Singh
45503898b0 read bug fix 2021-04-29 23:12:01 +05:30
Adhiraj Singh
b473ed7502 Add group title fix 2021-04-29 23:00:57 +05:30
Adhiraj Singh
5dfeaf75b0 Update 4.Events.ts 2021-04-25 19:22:00 +05:30
Adhiraj Singh
15ff592534 weird group ID patch 2021-04-20 13:04:11 +05:30
Adhiraj Singh
3b2618910c Clear tmp media files + regen yarn lock 2021-04-12 21:01:20 +05:30
Nurutomo
3575150df1 getBusinessProfile() (#425)
* JSDoc for acceptInvite and revokeInvite

* added isBusiness in isOnWhatsApp

* create getBusinessProfile

* removed unnecessary query
2021-03-30 20:18:21 +05:30
Adhiraj Singh
f20d36fe9b pad wamessagekey 2021-03-29 20:37:22 +05:30
Ibnu syawal
b1ea0e31da Added method to revokes link of group chat (#421) 2021-03-28 20:09:55 +05:30
Adhiraj Singh
7e79b88c78 Update README.md 2021-03-26 10:45:55 +05:30
Adhiraj Singh
caf46e05a3 Update publish-release.yml 2021-03-24 23:27:05 +05:30
Ibnu syawal
08bdb426c9 Added method to join group (#417)
* Added method to join group

* Added method to join group in README
2021-03-24 23:19:00 +05:30
Adhiraj Singh
389c409feb Update package.json 2021-03-24 23:18:26 +05:30
Pedro Dias
3b7c6e7aaa Update 6.MessagesSend.ts (#408) 2021-03-22 10:28:00 +05:30
Nils
e4bc0f6a61 Update connectOptions default in README (#394) 2021-03-19 23:53:04 +05:30
Adhiraj Singh
a8f4e14412 Disappearing messages fix
- Fixes crash issue on groups
- Fixes (i) on group chats when disappearing messages is on
2021-03-19 21:18:21 +05:30
Adhiraj Singh
afea6c249e Delete chat fix 2021-03-18 13:21:33 +05:30
Adhiraj Singh
4c2f954601 Fix ping not happening more than once 2021-03-11 13:52:52 +05:30
Omri Dagan
e670ff003e Add support for contacts array (#384)
* Add support for contacts array

* Remove contactsArray logs from Example.ts

* Undid prettier formatting of example.js
2021-03-07 02:03:47 +05:30
Nils
d469fdb3bd typo: retreive -> retrieve (#371) 2021-02-26 23:33:20 +05:30
Adhiraj Singh
482fa7090b Remove depracations + add chat ping loop 2021-02-12 16:54:31 +05:30
Adhiraj Singh
9edef50f45 isOnWhatsApp query fix 2021-02-05 18:27:58 +05:30
Adhiraj Singh
d803c219b6 Android not receiving message status update fix 2021-02-04 22:38:30 +05:30
Adhiraj Singh
a13aabd394 Prevent unexpected endConnection 2021-02-04 22:18:03 +05:30
Adhiraj Singh
dfaeef0db1 Fix initial-data-received called multiple times
The latest android version has messages with the last: true flag set on all messages, causing incorrect events being fired off. This update creates a timeout that fires off the initial-data-received 2500ms after the last messages received.

This may not be as accurate in production but will be better than the current version
2021-02-04 19:04:50 +05:30
Adhiraj Singh
63dd136afa Move msgCount increment to generateMessageTag
Prevents duplicate tags from being sent
2021-01-24 17:25:49 +05:30
Adhiraj Singh
e1952ff349 Don't save original if not required for media + update readme 2021-01-15 12:16:09 +05:30
Adhiraj Singh
01328b32c3 Removed accidental garbage 2021-01-14 23:48:38 +05:30
Adhiraj Singh
35aa857ab5 Listen for errors on got stream 2021-01-14 12:44:55 +05:30
Adhiraj Singh
2b50e4e6cc Update upload types 2021-01-13 23:09:09 +05:30
Adhiraj Singh
0344d6336c Stream uploads + downloads + allow for remote url uploads
- Switch to using got
- Use encryption/decryption streams for speed & lesser memory consumption
- Allow for stream based download & simultaneous upload of media
2021-01-13 22:48:28 +05:30
Adhiraj Singh
500805236a Don't dup presence updates 2021-01-08 19:54:41 +05:30
Adhiraj Singh
39802eb449 Better phone connection detection 2021-01-06 18:21:36 +05:30
Adhiraj Singh
b9ece77220 Removed loadProfilePicturesForChatsAutomatically 2021-01-05 19:08:25 +05:30
Adhiraj Singh
2129c87852 Update Constants.ts 2021-01-05 17:44:35 +05:30
Adhiraj Singh
0565444999 Add stack traces to promiseTimeout & delay 2021-01-05 17:42:05 +05:30
Adhiraj Singh
96a6dc7e6d General cleanup 2021-01-04 21:21:43 +05:30
Adhiraj Singh
efe6bf1dd3 Cleaner code. Remove credentials-updated & connection-validated as they became obsolete
`credentials-updated` & `connection-validated` became obsolete as they are equivalent to `open`
2021-01-04 17:07:51 +05:30
Adhiraj Singh
6cc5a910f7 Completely remove message-status-update & user-status-update 2021-01-04 14:19:44 +05:30
Adhiraj Singh
ac4b4c7384 Removed deprecations + merge message-status-update into chat-update
1. Update package version to 4.0.0
2. Retry query if the connection unexpectedly closes + make query iterative instead of recursive
3. Remove message-new & message-update deprecations
4. Deprecate loadProfilePicturesForChatsAutomatically
2021-01-04 12:35:48 +05:30
Adhiraj Singh
05bae6b1e7 Unarchive tests 2020-12-31 11:18:47 +05:30
Adhiraj Singh
763ac66551 Update key when archive changes 2020-12-31 10:39:51 +05:30
Adhiraj Singh
c126cca554 Unarchive conversations on new message 2020-12-30 16:49:58 +05:30
Adhiraj Singh
100c8fd96d Add more contact-update + better phone check 2020-12-30 11:26:46 +05:30
Adhiraj Singh
ebaf9280b3 Merge pull request #278 from edgardmessias/feat_pushname
Added method to update the profile name
2020-12-29 23:31:57 +05:30