Commit Graph

81 Commits

Author SHA1 Message Date
AkirahX
b8f33405bf Update version (#1058) 2021-12-22 19:37:42 +05:30
Adhiraj Singh
93e272f9bf chore: update version 2021-12-08 13:06:52 +05:30
Adhiraj Singh
e6e8a8e973 update version 2021-11-05 00:19:37 +05:30
Adhiraj Singh
981203c133 update version 2021-10-27 12:35:31 +05:30
Volker Lieber
76c929208a Switched to latest supported version (#637) 2021-08-10 18:28:46 +05:30
Adhiraj Singh
d4189c3d00 Update version 2021-07-06 16:14:20 +05:30
bhavya32
0dea009f9c Added Option to skip QR Logging in Terminal (#552)
QR logging can now be disabled using connect option.
2021-06-27 19:02:47 +05:30
Adhiraj Singh
3607357152 add max query response time + update package 2021-06-16 11:59:21 +05:30
ShellTear
1c8d7df829 Update wa web version (#528)
Fixes connection issue mentioned in #526
2021-06-15 23:06:10 +05:30
Adhiraj Singh
15ff592534 weird group ID patch 2021-04-20 13:04:11 +05:30
Adhiraj Singh
4c2f954601 Fix ping not happening more than once 2021-03-11 13:52:52 +05:30
Adhiraj Singh
482fa7090b Remove depracations + add chat ping loop 2021-02-12 16:54:31 +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
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
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
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
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
100c8fd96d Add more contact-update + better phone check 2020-12-30 11:26:46 +05:30
Adhiraj Singh
bc3cb6c178 Require phone connection in required places 2020-12-23 09:31:00 +05:30
Edgard
0bf0ec6490 Added method to block/unblock user (close #233) 2020-12-14 16:05:57 -03:00
Adhiraj Singh
7dc083b6e5 Update init method to try login multiple times + use WA ttl for QR gen 2020-11-26 17:08:18 +05:30
Adhiraj Singh
242328abdc Presence fixes 2020-11-24 18:56:07 +05:30
Adhiraj Singh
9f8f244b66 Added offline check for isOnWhatsApp 2020-11-20 12:50:14 +05:30
Adhiraj Singh
f29c5cf206 Add name to presence update 2020-11-17 17:12:14 +05:30
Adhiraj Singh
11d1dda3f5 Fix pendingRequestTimeout bug 2020-11-14 16:01:02 +05:30
Adhiraj Singh
7a80bc1b92 Detect new login 2020-11-14 14:12:04 +05:30
Adhiraj Singh
6d02d405a7 Major redo with respect to chats/contacts -- read desc
Waiting for chats & contacts is hella unreliable, so I've put them as events
1. receive chats via the `chats-received` event. If new chats are found, the flag for that is sent as well
2. receive contacts via the `contacts-received` event
3. When WA sends older messages, the `chats-update` or `chat-update` event is triggered
4. Baileys keeps track of all the changed conversations between connects

Connects almost always take less than 10 seconds!
2020-11-13 23:15:16 +05:30
Adhiraj Singh
c4548f756b Update version 2020-11-10 12:15:38 +05:30
Adhiraj Singh
75aa1f9d81 Chats not being received bug fix 2020-11-05 16:57:27 +05:30
Adhiraj Singh
155df2bc4f Android chat read fix + debounceTimeout bug fix 2020-11-03 13:24:56 +05:30
Adhiraj Singh
e0fd554aa0 Update 0.Base.ts 2020-11-01 17:37:22 +05:30
Adhiraj Singh
69da12c33c handle tags via EventEmitter + replace 'intermediate-close' with 'ws-close' 2020-10-30 17:42:45 +05:30
Adhiraj Singh
aa40d63494 Update 0.Base.ts 2020-10-29 17:30:02 +05:30
Adhiraj Singh
92c15b477b EventEmitter fix 2020-10-29 17:29:38 +05:30
Adhiraj Singh
cc722a5138 Callbacks via EventEmitter + possible memory leak fix 2020-10-28 16:10:28 +05:30
Adhiraj Singh
51672150e4 More reliable debounced timeouts 2020-10-23 14:21:15 +05:30
Adhiraj Singh
ea91c807f4 debug message cancels 2020-10-19 17:34:54 +05:30
Adhiraj Singh
588209d57c Explicit waitForConnection + option to not load profile picture for new chats 2020-10-19 15:22:44 +05:30
Adhiraj Singh
6391e37198 Change default connect options 2020-10-15 16:53:48 +05:30
Adhiraj Singh
e2d5fb1a25 More accurate phone connection detection 2020-10-15 16:50:52 +05:30
Adhiraj Singh
16b138c759 added experimental always use takeover 2020-10-13 14:49:36 +05:30
Adhiraj Singh
6c000ab093 Added logger, handled checksum fail 2020-10-12 20:32:32 +05:30
Adhiraj Singh
210b467b68 Close before terminate + update presence on message receive 2020-10-11 23:08:48 +05:30
Adhiraj
15ba4b66fb Added fetch agent 2020-10-06 12:55:38 +05:30
Adhiraj
64c9b7449e Chat ordering update 2020-10-04 18:29:35 +05:30
Adhiraj
8277590d11 Added ability to log messages 2020-09-30 20:44:22 +05:30
Adhiraj
5634a7a2c4 incorrect interval fix 2020-09-27 14:08:33 +05:30