Adhiraj Singh
dfaeef0db1
Fix initial-data-received called multiple times
...
The latest android version has messages with the last: true flag set on all messages, causing incorrect events being fired off. This update creates a timeout that fires off the initial-data-received 2500ms after the last messages received.
This may not be as accurate in production but will be better than the current version
2021-02-04 19:04:50 +05:30
Adhiraj Singh
e1952ff349
Don't save original if not required for media + update readme
2021-01-15 12:16:09 +05:30
Adhiraj Singh
35aa857ab5
Listen for errors on got stream
2021-01-14 12:44:55 +05:30
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
0565444999
Add stack traces to promiseTimeout & delay
2021-01-05 17:42:05 +05:30
Adhiraj Singh
ccab24cdb2
Nicer message deletion + catch profile picture update errors
2020-12-18 12:35:24 +05:30
Adhiraj Singh
282fdb1bd3
Add option to look for deleted keys in shallowChanges
2020-12-12 14:15:05 +05:30
Adhiraj Singh
196be24e4f
Update messageID generation + use archive property in chat key
2020-11-28 13:26:31 +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
cc722a5138
Callbacks via EventEmitter + possible memory leak fix
2020-10-28 16:10:28 +05:30
Borewit
c36cb88fda
Fix calculating audio duration.
2020-10-25 13:59:51 +01:00
Adhiraj Singh
5861e851cc
Dynamic import audio libs
2020-10-22 22:10:42 +05:30
Adhiraj Singh
a72ed7272d
Automatic audio duration fetch
2020-10-22 20:23:35 +05:30
Adhiraj Singh
6c000ab093
Added logger, handled checksum fail
2020-10-12 20:32:32 +05:30
Adhiraj
9c34f35a7b
message ordering bug fix
2020-10-05 23:13:03 +05:30
Adhiraj
526f5d9168
Update Utils.ts
2020-10-05 12:04:53 +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
67d82b4169
More explicit media sending
2020-10-01 13:22:14 +05:30
Adhiraj
ab54e70add
key update
2020-09-27 20:37:37 +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
db44f82724
Added GenericMediaMessage
2020-09-11 19:30:51 +05:30
Adhiraj
f12f6fd90d
added proxy support
2020-09-06 15:48:01 +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
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
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
420c707195
fixed bug with stickers
2020-08-31 16:28:56 +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
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
a39995e2d9
Node V12 compatible
2020-08-16 22:03:48 +05:30
Adhiraj
0ab0df1c17
unit test for quoting groups
2020-08-16 18:19:53 +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
Adhiraj
6c4d96af32
Update Utils.ts
2020-08-12 20:51:31 +05:30
Adhiraj
8202203c2e
more 0s to prevent hash clash
2020-08-11 19:18:29 +05:30
Adhiraj
c121d17c12
Set Status + Set Group Description + Better Message Tags
2020-08-02 13:45:27 +05:30
Adhiraj
b06f53401f
Updates
...
-Removed unread messages while connecting
-Added KeyedDB integration
-pdf mimetype fix + mimetype can be string now
2020-07-31 17:32:15 +05:30
Adhiraj
18cffdaa17
User Agent string in fetch requests
2020-07-27 22:48:40 +05:30
Adhiraj
db1f62f102
Better error handling
2020-07-24 14:17:39 +05:30
Adhiraj
7f2468efcf
Change Profile Picture + Change Group Settings + Send Message to Oneself
2020-07-19 23:26:48 +05:30
Adhiraj
d87e4e5897
Unified unexpected disconnect & takeover events
2020-07-13 16:32:52 +05:30
Adhiraj
3534bd856f
Set appropriate browsers
2020-07-13 14:14:45 +05:30
Adhiraj
51484df602
Fetch stories + broadcast list info
2020-07-13 13:45:46 +05:30
Adhiraj
e7355f5ca3
Stopped throwing literals :/
2020-07-10 16:54:01 +05:30
Adhiraj
2dad372e75
Unread fix + regen QR code changes + Browser message decoding
2020-07-10 12:27:18 +05:30