Commit Graph

30 Commits

Author SHA1 Message Date
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
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
b6a8d02038 Cleaner upserts 2020-12-18 16:49:28 +05:30
Adhiraj Singh
b72e2dfcf9 Track updated contacts 2020-12-12 14:06:46 +05:30
Adhiraj Singh
84edfe1ca0 Archive bug fix + Delete bug fix + assert deprecation update 2020-11-30 19:21:10 +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
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
51672150e4 More reliable debounced timeouts 2020-10-23 14:21:15 +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
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
cb9d511400 chat updates bug fix 2020-09-05 19:54:47 +05:30
Adhiraj
9041272b5c updates 2020-09-05 18:31:56 +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
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
0af9f8fbe4 More reliable connect with automatic retries + default connect options 2020-08-31 14:39:21 +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
dd91c9a0d9 bug fix where phonePoll wasn't clearing 2020-08-27 16:14:24 +05:30
Adhiraj
ea36aabb6c better connections 2020-08-22 17:46:41 +05:30
Adhiraj
47021c34bf correct message updates 2020-08-19 17:43:30 +05:30
Adhiraj
a6c8fee814 Reconnect fixes 2020-08-19 16:06:20 +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