Commit Graph

52 Commits

Author SHA1 Message Date
Adhiraj Singh
f29c5cf206 Add name to presence update 2020-11-17 17:12:14 +05:30
Adhiraj Singh
cea702b5a3 better presence handling via chat-update 2020-11-17 16:58:57 +05:30
Adhiraj Singh
f68a14bff8 Added profile picture to contact 2020-11-17 13:19:19 +05:30
Adhiraj Singh
781f586b6f Update 4.Events.ts 2020-11-15 15:10:05 +05:30
Adhiraj Singh
2a01add13e Better search for numbers + chat fix 2020-11-15 14:05:32 +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
eaf56f6d71 group promote/demote event fix + archive fix + group events rework 2020-11-12 13:46:10 +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
7b2aa7dd8a Ensure @s.whatsapp.net for message-update 2020-10-29 16:44:29 +05:30
Adhiraj Singh
cc722a5138 Callbacks via EventEmitter + possible memory leak fix 2020-10-28 16:10:28 +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
e2d5fb1a25 More accurate phone connection detection 2020-10-15 16:50:52 +05:30
Adhiraj Singh
c72c6be2b7 Not adding new message when update fails 2020-10-12 20:40:11 +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
c87f06752d Maintain epoch on message-update 2020-10-08 20:07:51 +05:30
Adhiraj
2a3376dd3e clear chat fix 2020-10-05 12:13:13 +05:30
Adhiraj
6560fc1756 string based key for messages 2020-10-05 01:40:13 +05:30
Adhiraj
0d13a15904 Handle updating of credentials 2020-10-02 14:19:04 +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
30cee92758 PTT Audio + Automatic link preview generation + Minor changes 2020-09-22 22:50:29 +05:30
Dayan C. Galiazzi
eac324bc1c fix: presence event when contact not exists 2020-09-21 01:32:02 -03:00
Adhiraj
5064ecc144 update WA version + presence update tracking 2020-09-19 16:56:29 +05:30
Adhiraj
ac0eb6fc10 Cache presence updates + waitForLastMessage option 2020-09-18 19:08:19 +05:30
Adhiraj
c04c675424 Update 4.Events.ts 2020-09-11 20:50:58 +05:30
Adhiraj
3b6b8eabe3 Update 4.Events.ts 2020-09-11 17:21:44 +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
7cc35d6e84 try on all hosts for media 2020-09-06 13:21:54 +05:30
Adhiraj
0a8312a81f possible duplicate key fix 2020-09-06 12:18:30 +05:30
Adhiraj
fb51a3f2cd test fix 2020-09-04 13:49:26 +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
4c646e3e02 chatDB tests + message length identical with WA 2020-09-02 22:40:51 +05:30
Adhiraj
426dbc255d changes 2020-09-02 13:04:49 +05:30
Adhiraj
7d4f50c00d Update 4.Events.ts 2020-08-31 20:17:52 +05:30
Adhiraj
cadd34bc0e protobuf uniformity + messages bug fix 2020-08-31 16:02:09 +05:30
Adhiraj
0af9f8fbe4 More reliable connect with automatic retries + default connect options 2020-08-31 14:39:21 +05:30
Adhiraj
904bade7a8 duplicate key bug fix 2020-08-29 14:48:55 +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
bf3ff1a731 Handle group_create 2020-08-28 13:00:29 +05:30
Adhiraj
2ce9a1c28d Documented disconnect reason 2020-08-27 16:36:14 +05:30
Adhiraj
dd91c9a0d9 bug fix where phonePoll wasn't clearing 2020-08-27 16:14:24 +05:30
Adhiraj
a82d5bb1fe fixes 2020-08-23 22:41:36 +05:30
Adhiraj
ef9d3661ca . 2020-08-23 20:19:58 +05:30
Adhiraj
ea36aabb6c better connections 2020-08-22 17:46:41 +05:30
Adhiraj
dcb06be944 got rid of redundancies 2020-08-21 20:36:44 +05:30
Adhiraj
47021c34bf correct message updates 2020-08-19 17:43:30 +05:30