Commit Graph

71 Commits

Author SHA1 Message Date
Adhiraj Singh 5fb9e8abed Minor updates 2020-12-28 11:44:02 +05:30
Adhiraj Singh 523f0341ed Emit bug fix from #277 @edgardmessias 2020-12-18 18:54:29 +05:30
Adhiraj Singh 5f995036fc Merge pull request #277 from edgardmessias/fix_emit
Fixed event emitter for default callback
2020-12-18 17:38:24 +05:30
Adhiraj Singh 597f073948 Terminate connection on false pong 2020-12-18 17:33:58 +05:30
Edgard Messias dc874e3415 Fixed event emitter for default callback 2020-12-16 11:21:12 -03:00
Adhiraj Singh b72e2dfcf9 Track updated contacts 2020-12-12 14:06:46 +05:30
Adhiraj Singh 6d7dc4d9fe Manage group metdata state in Baileys + Remove presence from Contact 2020-12-03 13:16:37 +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 eace0c1795 Deprecated message-new & message-update + fix presence update for groups
The chat-update event is fired now when a message is received/updated
2020-11-13 16:07:08 +05:30
Adhiraj Singh 75aa1f9d81 Chats not being received bug fix 2020-11-05 16:57:27 +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 4b52d0e8c9 Possible QR scan bug fix 2020-10-28 23:20:09 +05:30
Adhiraj Singh 5d3048ce38 Moved message parsing logic outside try/catch 2020-10-28 22:44:23 +05:30
Adhiraj Singh 57c46e3122 regen QR call rejectPending 2020-10-28 22:20:55 +05:30
Adhiraj Singh 0a56406da3 Removed console.log 2020-10-28 19:23:29 +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 f1e5f3c3b5 minor connect change 2020-10-15 17:52:54 +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 163497964c update disconnect reason for reconnect 2020-10-13 14:46:16 +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 9c34f35a7b message ordering bug fix 2020-10-05 23:13:03 +05:30
Adhiraj 6560fc1756 string based key for messages 2020-10-05 01:40:13 +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 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 18cea74aaf Added headers 2020-09-24 23:17:59 +05:30
Adhiraj 30cee92758 PTT Audio + Automatic link preview generation + Minor changes 2020-09-22 22:50:29 +05:30
Adhiraj ac0eb6fc10 Cache presence updates + waitForLastMessage option 2020-09-18 19:08:19 +05:30
Adhiraj b7de86afce Idle timeout 2020-09-18 16:22:57 +05:30
Adhiraj 7eb454b3dd Added user 2020-09-17 16:10:45 +05:30
Adhiraj 6d2eaf93cb Added mutex + fixed rare duplicate chats bug + fixed connect bug
The mutex will prevent duplicate functions from being called and throwing funky errors.
2020-09-09 14:16:08 +05:30
Adhiraj f9f109e134 updates 2020-09-07 20:22:28 +05:30
Adhiraj 16ef8a617e updated connect & message sending 2020-09-07 20:08:43 +05:30
Adhiraj f12f6fd90d added proxy support 2020-09-06 15:48:01 +05:30
Adhiraj cb9d511400 chat updates bug fix 2020-09-05 19:54:47 +05:30
Adhiraj b645214926 Better media conn handling 2020-09-05 19:28:35 +05:30
Adhiraj 9041272b5c updates 2020-09-05 18:31:56 +05:30
Adhiraj 1340279cdb added pong event 2020-09-03 22:58:27 +05:30
Adhiraj 3d5b37fc44 compute chat deltas with connect 2020-09-03 18:25:43 +05:30
Adhiraj 426dbc255d changes 2020-09-02 13:04:49 +05:30
Adhiraj 50d50e4ae9 connect cooldown + terminate WS instead of close 2020-09-01 13:16:50 +05:30
Adhiraj 218c9bcc18 Added function to change read status for chat, updated connect 2020-09-01 12:13:25 +05:30
Adhiraj c5fec0e6a3 connect fixes 2020-08-31 21:36:27 +05:30
Adhiraj 0af9f8fbe4 More reliable connect with automatic retries + default connect options 2020-08-31 14:39:21 +05:30