* added event for group membership request
* small update to improve the performance of findImpl fix
* window.compareWwebVersions fixed
* added getGroupMembershipRequests method
* added approveGroupMembershipRequest method
* correct module for getGroupMembershipRequests
* membershipRequestAction separated to Injected.js
* docs clarification for approveGroupMembershipRequest
* added rejectGroupMembershipRequest method
* module fixed
* methods extension
* docs clarification
* force to update group membership requests
* docs fixed
* added usage example
* avoid sleep after the last iteration
* fix: added missing modules
* improve forcing to update group membership requests
* usage example clarification
* module refactored
* optional parameters
* usage example modified
* remove default values for membershipRequestAction
* added error description for memb req action
* usage example fixed
* return result even if ServerStatusCodeError
* default error message was missing
* removed line break
* added function to to modify module functions
* fix for locations to be sent
* changes for class Location
- description property was splited into name and address
- added url property
- added ability to pass name, address and url as options while creating an instance
* docs updated
* usage example updated
* added url checking
* fixed url
* updated location property in Message class
* fixed url when http prefix is provided
* injectToFunction updated to be more flexible
* docs clarification
* ESLint fix
* fix: injectToFunction fixed to work properly
* minor fix in injectToFunction
* refactor: added usage of url validator
* small change to improve performance for findImpl fix
* window.compareWwebVersions fixed
* feat: get message by id
Add the feature of getting messages by id.
It's loads messages that are not loaded in the Store.Msg, and add them into the Store.Msg.
I don't use the draft because this is already work
* Fix typo
* Fix for test
* Update index.d.ts
---------
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
Co-authored-by: Codeboss <131376628+codebossdev@users.noreply.github.com>
* fixed: contact info retrieving
* fixed: block method
* fixed: isBlocked property is now changeble
* added inner function to compare between WWeb versions
The function compares the currently used WWeb version with the version that requires the code changes. Its purpose is to ensure the stable operation of the library across different WWeb versions.
* added: todo remove useOldImplementation
* improved inner function to compare WWeb versions
* inner function: added support for beta versions
* added support for business accounts
* module queries changed to strings
* fixed check for wweb beta versions
* updated to throw a custom error message
* minor changes in inner function
* feat: use specific whatsapp web version
* add constants to version updater
* configurable caches
* rename
* typings
* rm extraneous export
* missing from the rename
* rm version resolver
* match readme version
* use try-catch
* only persist if cache miss
* Initial commit
* Update index.d.ts
* The functions was returning a 'brief' chat data. With this, it will return full Chat model..
* Eslint suggested fixex
---------
Co-authored-by: tuyuribr <45042245+tuyuribr@users.noreply.github.com>
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>