Commit Graph

398 Commits

Author SHA1 Message Date
Adhiraj Singh 40a1e268aa feat: add "strictNullChecks" 2022-07-09 10:20:07 +05:30
Adhiraj Singh 4c800b95d1 fix: only fire valid events 2022-07-07 15:37:01 +05:30
Adhiraj Singh d143ef0b7d feat: handle delete events accurately 2022-07-06 22:05:01 +05:30
Adhiraj Singh 41ca76a0af fix: chats.delete patch on sync 2022-07-06 22:05:01 +05:30
✬Ravindu Manoj✬ ✓ f13bd1fdab whatsapp web version (#1868)
* whatsapp web version

* whatsapp web version

* function for fetch latest whatsapp web version

* whatsapp web version
2022-07-06 12:08:46 +05:30
Adhiraj Singh 189b740ea6 chore: remove "treatCiphertextMessagesAsReal" flag
!BREAKING_CHANGE

This was generally a poor design decision on my part to add something like this -- primarily because it could increment the chat unread counter a 100 times for a single message
2022-07-04 11:38:17 +05:30
Adhiraj Singh 5cc58d4aed feat: add bulk "process" capability to BaileysBufferableEventEmitter 2022-07-04 11:34:41 +05:30
Adhiraj Singh de95694266 fix: use correct status code for throwing media error 2022-07-04 11:24:34 +05:30
aqulzz 200b75d53e fix: add senderTimestampMs automatically in reactMessage (#1845)
* docs: how to remove the reaction message

* Add `senderTimestampMs` automatically in reactMessage

* fix lint
2022-07-02 19:52:34 +05:30
Adhiraj Singh 2c03802939 chore: use "null" to signify removal of mute 2022-06-27 15:14:05 +05:30
Adhiraj Singh eaf0f37d24 refactor: use event-buffer for state sync resyncs 2022-06-27 14:51:26 +05:30
Adhiraj Singh 7421f55daa feat: implement event buffer for offline msgs
!BREAKING_CHANGE

1. this allows all offline notifications to be combined into a batch -- to reduce the number of events being sent out
2. to enable the above, the "message.reaction" event has been made an array. Also removes the need for the "operation" field
3. have also now started processing all events under a single queue to prevent state sync problems
2022-06-27 13:38:29 +05:30
Adhiraj Singh fd80448fcb feat: handle verified name in message 2022-06-26 10:57:49 +05:30
Adhiraj Singh 66f49e0b3d fix: correctly set reaction msg key 2022-06-25 22:39:55 +05:30
Adhiraj Singh ee7ed1d4e5 feat: include last message in chat 2022-06-24 11:46:47 +05:30
Adhiraj Singh 8fa500a8a2 chore: update proto
the proto was generated using a different method, hence the diff is larger -- but if the method continues to work, we should get very nice little diffs
2022-06-23 22:14:43 +05:30
Adhiraj Singh 24dd76771e fix: correctly extract media content 2022-06-21 13:56:21 +05:30
Adhiraj Singh 6c4f63237f fix: better WS error map 2022-06-20 15:18:04 +05:30
Adhiraj Singh 7863c0e4c2 perf: nicer "shouldIncludeDeviceIdentity" flag computation 2022-06-17 13:16:41 +05:30
Adhiraj Singh 23acc1fb39 feat: extract code from WS error 2022-06-16 20:43:51 +05:30
Adhiraj Singh ecd8f74800 chore: logging in transaction 2022-06-16 14:47:57 +05:30
Adhiraj Singh f44335db8d chore: better error for recipient error 2022-06-15 15:05:58 +05:30
Adhiraj Singh 7b900c174d chore: more logging 2022-06-15 13:55:23 +05:30
fadiinho bd98b13895 fix: reaction message doesn't appear when send to a group (#1700)
* fix: reaction message doesn't appear when send to a group

* use undefined instead of null
2022-06-13 20:15:56 +05:30
Dwi Rizqi e7087cabf5 fix: Delete Message For Me (#1718)
* Add Timestamp for deleteMessageForMe

* Fix Typo Readme

* Add Timestamp for deleteMessageForMe

* fix: Typo type timestamp
2022-06-13 20:13:52 +05:30
Adhiraj Singh 32fadda86a feat: add button reply 2022-06-13 16:22:28 +05:30
Adhiraj Singh b125638253 fix: add missing "isLatest" flag 2022-06-13 12:53:20 +05:30
Adhiraj Singh f87f89329b perf: avoid excess memory usage when syncing state 2022-06-11 20:25:57 +05:30
Adhiraj Singh a0548fbc4c fix: add more escape chars for multi file auth state 2022-06-11 19:30:48 +05:30
Adhiraj Singh 5cb71ac862 feat: more accurately handle app state sync 2022-06-11 12:02:08 +05:30
Adhiraj Singh 79518787b6 feat: prevent urlInfo gen 2022-06-10 09:52:36 +05:30
Adhiraj Singh 0ff6e1b571 chore: log more info when uploading media 2022-06-10 09:30:31 +05:30
Adhiraj Singh be535f0a34 fix: give preview even if thumbnail gen fails 2022-06-09 15:07:04 +05:30
Adhiraj Singh 5305730d82 feat: track history being stored
This is done because sometimes we receive history after the first connect too, and to ensure the "isLatest" flag is accurate -- we ensure no history was received previously
2022-06-07 21:18:51 +05:30
Naif Alharbi 0daab87d7f Fix status@broadcast file name (#1696)
user-multi-file-auth-state fails to write/read status@broadcast files because they have a colon.
To fix it, we replaced the colon with a dash.
This might solve the issues below
https://github.com/adiwajshing/Baileys/issues/1589#issue-1229804957
https://github.com/adiwajshing/Baileys/issues/1693#issue-1260676356
2022-06-05 17:20:16 +05:30
Adhiraj Singh 6f48bbb736 chore: make transaction logs trace 2022-06-05 13:59:51 +05:30
Adhiraj Singh cafc707628 feat: add option to reupload in downloadMediaMessage 2022-06-01 13:19:05 +05:30
Adhiraj Singh 06ce5f9be0 feat: add media retry for MD 2022-06-01 13:04:45 +05:30
Adhiraj Singh 4c51800b09 feat: add "assertMediaContent" util 2022-06-01 13:02:05 +05:30
Adhiraj Singh f2ef5ff1d4 refactor: create generic "bindWaitForEvent" for baileys event emitter 2022-06-01 13:01:26 +05:30
Adhiraj Singh 436cdc84f0 refactor: move GCM decrypt/encrypt to separate util 2022-06-01 12:59:36 +05:30
Adhiraj Singh 15761ca9df chore: more modular link preview generation 2022-05-27 13:30:37 +05:30
Adhiraj Singh ef71b7e09d chore: remove data in multifileauthstate too 2022-05-25 12:14:37 +05:30
Adhiraj Singh 24a2b4150a fix: appstatesyncdata in multifileauthstate 2022-05-25 12:14:17 +05:30
Adhiraj Singh 59652a5368 feat: handle chat deletes + message stars 2022-05-25 12:12:17 +05:30
Adhiraj Singh 4ea2c33cfa fix: cleanMessage for reaction messages 2022-05-23 12:46:34 +05:30
Adhiraj Singh ebec02908c feat: add clean message util before calling "messages.upsert" 2022-05-23 12:32:43 +05:30
Adhiraj Singh 06437e182d feat: add "multi file auth state" implementation
1. add multi file auth state since it's far more efficient than single state
2. deprecate single file auth state (please don't use it anymore)
2022-05-22 21:21:35 +05:30
Adhiraj Singh a8e209705a feat: add retry capability to SignalKeyStore 2022-05-22 20:52:21 +05:30
Adhiraj Singh c5d488f1c6 docs: add info about addTransactionCapability 2022-05-22 20:41:00 +05:30