Commit Graph

57 Commits

Author SHA1 Message Date
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
eaf56f6d71 group promote/demote event fix + archive fix + group events rework 2020-11-12 13:46:10 +05:30
Adhiraj Singh
155df2bc4f Android chat read fix + debounceTimeout bug fix 2020-11-03 13:24:56 +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
51672150e4 More reliable debounced timeouts 2020-10-23 14:21:15 +05:30
Adhiraj Singh
a72ed7272d Automatic audio duration fetch 2020-10-22 20:23:35 +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
b05c160846 search fix for non-ASCII characters 2020-10-09 17:16:56 +05:30
Adhiraj
15ba4b66fb Added fetch agent 2020-10-06 12:55:38 +05:30
Adhiraj
9c34f35a7b message ordering bug fix 2020-10-05 23:13:03 +05:30
Adhiraj
c0ca27dc2f loadMessages bug fix 2020-10-05 22:40:15 +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
67d82b4169 More explicit media sending 2020-10-01 13:22:14 +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
Adhiraj
8bc19a8a82 messages are proto objects 2020-09-14 16:38:53 +05:30
Adhiraj
f41bf888f1 Update Tests.Messages.ts 2020-09-12 13:41:59 +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
61994f165d updated filters 2020-09-07 12:16:51 +05:30
Adhiraj
f12f6fd90d added proxy support 2020-09-06 15:48:01 +05:30
Adhiraj
0a8312a81f possible duplicate key fix 2020-09-06 12:18:30 +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
fb51a3f2cd test fix 2020-09-04 13:49:26 +05:30
Adhiraj
3d5b37fc44 compute chat deltas with connect 2020-09-03 18:25:43 +05:30
Adhiraj
33448690a4 audio tests 2020-09-03 10:25:00 +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
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
ad922a38f6 loadMessages bug fix 2020-08-31 20:03:22 +05:30
Adhiraj
420c707195 fixed bug with stickers 2020-08-31 16:28:56 +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
61104e8a6b fixes 2020-08-30 23:22:04 +05:30
Adhiraj
536d12a200 better cleanup 2020-08-29 13:36:15 +05:30
Adhiraj
6311303773 tests update 2020-08-28 23:19:40 +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
dd91c9a0d9 bug fix where phonePoll wasn't clearing 2020-08-27 16:14:24 +05:30
Adhiraj
d995af0104 quote bug fix 2020-08-26 23:33:14 +05:30
Adhiraj
64a360a8a7 possible loadMessage fix 2020-08-25 20:34:35 +05:30
Adhiraj
59df353746 possibly more reliable connect 2020-08-25 18:33:43 +05:30
Adhiraj
aac613094c load message bug fix 2020-08-25 17:54:52 +05:30
Adhiraj
9f8ff1ea29 Update Tests.Groups.ts 2020-08-23 22:43:26 +05:30
Adhiraj
d7e3312b1d Simpler chat modifications 2020-08-23 16:49:15 +05:30
Adhiraj
ea36aabb6c better connections 2020-08-22 17:46:41 +05:30