Commit Graph

89 Commits

Author SHA1 Message Date
Adhiraj Singh
b5ac28d426 feat: implement partial media downloads 2021-12-02 11:38:24 +05:30
Adhiraj Singh
f267f27ada finalize multi-device 2021-09-22 22:19:53 +05:30
Adhiraj Singh
75c15e7767 generic media uploads 2021-08-06 18:41:07 +05:30
Adhiraj Singh
b5ee036ae9 update proto 2021-07-29 20:33:19 +05:30
Adhiraj Singh
89cf8004e9 Wrap up connection + in memory store 2021-07-09 20:35:07 +05:30
Adhiraj Singh
5be4a9cc2c remove all files 2021-07-07 23:20:11 +05:30
Adhiraj Singh
3b2618910c Clear tmp media files + regen yarn lock 2021-04-12 21:01:20 +05:30
Ibnu syawal
08bdb426c9 Added method to join group (#417)
* Added method to join group

* Added method to join group in README
2021-03-24 23:19:00 +05:30
Nils
d469fdb3bd typo: retreive -> retrieve (#371) 2021-02-26 23:33:20 +05:30
Adhiraj Singh
63dd136afa Move msgCount increment to generateMessageTag
Prevents duplicate tags from being sent
2021-01-24 17:25:49 +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
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
6cc5a910f7 Completely remove message-status-update & user-status-update 2021-01-04 14:19:44 +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
05bae6b1e7 Unarchive tests 2020-12-31 11:18:47 +05:30
Adhiraj Singh
100c8fd96d Add more contact-update + better phone check 2020-12-30 11:26:46 +05:30
Edgard Messias
14bf3a441a Added method to update the profile name 2020-12-18 16:10:05 -03:00
Adhiraj Singh
3288846380 Merge pull request #279 from edgardmessias/feat_clear_chat
Added method to clear chat and star/unstar message
2020-12-18 17:40:50 +05:30
Adhiraj Singh
b6a8d02038 Cleaner upserts 2020-12-18 16:49:28 +05:30
Adhiraj Singh
ccab24cdb2 Nicer message deletion + catch profile picture update errors 2020-12-18 12:35:24 +05:30
Edgard
5a7077c675 Added method to clear chat and star/unstar message 2020-12-16 13:58:24 -03:00
Edgard
0bf0ec6490 Added method to block/unblock user (close #233) 2020-12-14 16:05:57 -03:00
Adhiraj Singh
b72e2dfcf9 Track updated contacts 2020-12-12 14:06:46 +05:30
Adhiraj Singh
eb7b8506a9 Added support for sending + toggling disappearing messages 2020-12-12 00:21:11 +05:30
Adhiraj Singh
376a43f116 Duplicate message after reconnect fix 2020-12-09 00:01:37 +05:30
Adhiraj Singh
caf82a46a8 Indexing change + missing messages detection 2020-12-08 18:06:20 +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
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
242328abdc Presence fixes 2020-11-24 18:56:07 +05:30
Adhiraj Singh
abde6563c9 Support decoding disappearing messages + events bug fix 2020-11-18 23:05:57 +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
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