Commit Graph

30 Commits

Author SHA1 Message Date
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
b6a8d02038 Cleaner upserts 2020-12-18 16:49:28 +05:30
Adhiraj Singh
69ec8b97b1 Update 1.Validation.ts 2020-12-06 19:46:20 +05:30
Adhiraj Singh
cbb8301e07 Update 1.Validation.ts 2020-12-05 14:23:28 +05:30
Adhiraj Singh
4a6c72c36c Invalid session fix 2020-12-04 16:02:16 +05:30
Adhiraj Singh
d4b453f0e5 Bug fix for sendLoginReq 2020-12-02 14:21:06 +05:30
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
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
69da12c33c handle tags via EventEmitter + replace 'intermediate-close' with 'ws-close' 2020-10-30 17:42:45 +05:30
Adhiraj Singh
57c46e3122 regen QR call rejectPending 2020-10-28 22:20:55 +05:30
Adhiraj Singh
51672150e4 More reliable debounced timeouts 2020-10-23 14:21:15 +05:30
Adhiraj Singh
f1e5f3c3b5 minor connect change 2020-10-15 17:52:54 +05:30
Adhiraj Singh
28cf354f43 Added connection-validated 2020-10-15 17:11:21 +05:30
Adhiraj Singh
e2d5fb1a25 More accurate phone connection detection 2020-10-15 16:50:52 +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
0d13a15904 Handle updating of credentials 2020-10-02 14:19:04 +05:30
Adhiraj
3a878ae193 Updates
- removed timeout, use maxIdleTimeMs
- made messages a keyedDB to better utitlize message cache
- possible fix for group ID bug
2020-09-27 13:51:36 +05:30
Adhiraj
b7de86afce Idle timeout 2020-09-18 16:22:57 +05:30
Adhiraj
d9d494ce2a First QR scan bug fix 2020-09-09 14:22:29 +05:30
Adhiraj
16ef8a617e updated connect & message sending 2020-09-07 20:08:43 +05:30
Adhiraj
0af9f8fbe4 More reliable connect with automatic retries + default connect options 2020-08-31 14:39:21 +05:30
Adhiraj
828be7f240 renamed user.id to user.jid 2020-08-28 20:22:35 +05:30
Adhiraj
890fb726f1 Changes
- Separated message-status-update & message-update
- Removed contact storage & waiting for contacts. General connect speed should improve by 10%-20%
- Added `contacts-received` event
2020-08-28 20:01:48 +05:30
Adhiraj
68b64b9707 Added reconnect mechanism 2020-08-25 00:26:47 +05:30
Adhiraj
ea36aabb6c better connections 2020-08-22 17:46:41 +05:30
Adhiraj
95d2567e76 Initial V3.0 2020-08-19 14:19:30 +05:30
Adhiraj
002d304041 Got rid of WAClient, deprecated code. Prep for V3
Layered classes based on hierarchy as well.
2020-08-16 17:51:29 +05:30