* fix: dont cause redirect loop due to session restore
* back to `state` in docs
* use referer to determine first injection
* bring bzck disconnect on nav
* revert some changes
* Fix the option to use special options
When we want to use some extra function we need to pass it into the options object, but because it inserted in the first line, the auto options reset some options (like 'type').
This is minor change that can help to add functionallity
* Update Injected.js
Put the special options in the end
* Update Injected.js
Fix , mistake
* only `extra` options can override everything else
Co-authored-by: Pedro Lopez <pedroslopez@me.com>
* get chat default messages fix#1014
* fixing format
* Update src/structures/Chat.js
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
* add search and status tests
* reset to previous status in test
* move version to its own test
* add tests for Chat model
* keep hooks at the top
* run tests recursively in default script
Some of my devices were bugging out because the setUserAgent didn't had an await, after this everything was working fine (try loading the wwebjs in a broken microSd ahhaha).
We need some testing but on my limited testing everything is working
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
* Update Message.js
Add isGif to the message data
* add typings
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
Co-authored-by: Pedro Lopez <pedroslopez@me.com>
* Hot Fix WA 2.2147.14
* Update Injected.js
* Update Client.js
* sendPresence1
* Update Client.js
* queryLinkPreview
* openChatDrawer
* revert back to using Wap
Co-authored-by: Pedro Lopez <pedroslopez@me.com>
* Fix WA 2.2146.9
WA is serving two versions to me, so we need to check window.mR.findModule('Conn').lengh for a while
* to singleQuotes
* Update Injected.js
* simplify getting `Conn` module, use different object for `Store`
Co-authored-by: Pedro Lopez <pedroslopez@me.com>
* max qr refresh before giving up
* Update src/Client.js
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
* muteChat fixed
* Update src/Client.js
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
* Update src/Client.js
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
* date fix
Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
* test setup, add initializer tests
* test sending messages
* add script to check latest version
* add github action
* use env vars
* configure environment with .env file
* add test for sticker name and author
* add DownloadManager model
* test chats and contacts
* test for number utility functions
* throw error if no remote id has been set
* Update .version