* Fix: Wrong import of Contact object
There was an error in the import:
`const {Contact} = require('./Contact');`
instead of
`const Contact = require('./Contact');`
* style: fix import order
---------
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
* Reduce supply chain attacks vectors
For some smallers dependencies we should hardcode specific versions to make it harder to make a supply chain attack
* Update package.json
* module fixed + improved modules retrieving
* wait for msg data to be updated
* added random sleep value between 1100-1200 ms
* added check for msg is sent by current user
* node 13 compatible
* docs fixed
* msg.fromMe fixed
* timestamp calculation fixed
* window.injectToFunction clarifications
* fixing the setPushname function
* Adding functions that change the media autoloading
* Checking against raw data
* fixed
* fixed merge
* ESLint
* Update src/util/Injected.js
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
---------
Co-authored-by: Shir Serlui <70711723+shirser121@users.noreply.github.com>
Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
* feat: added Poll class
* feat: logic for sending polls added
* updated poll properties on returned message instance
* docs updated
* usage example updated
* module fixed
* 'pollSendOptions' changed to 'options'
* window.compareWwebVersions fixed
* small update to improve the performance of findImpl fix
* added option for custom message secret
* usage example updated
* added required modules
* added sendGroupV4Invite implementation
* docs updated accordingly
* bug fixed
* added usage example
* ESLint fix
* extended resulting object
* docs updated accordingly
* added required modules
* updated comments
* bug fixed
* added usage example
* fixed to catch unexpected errors
* removed unnecessary module
* updated usage example
* minor fixes
* changed to return a string if an error is occupied
* fixed usage example
* removed unneccessary module
* added getAddParticipantsRpcResult
* updated addParticipants
- added AddParticipnatsOptions to provide values for sleep, autoSendInviteV4, comment
- combined addParticipants with sendGroupInviteMessage
* removed unneccessary sendGroupV4Invite
* docs updated
* fixed statement fot autoSendInviteV4
* minor fixes
- the returned value of addParticipants is no longer wrapped in an array
- docs updated
- fixed bug with the returned code value when the code is '200'
* added logic of retrieving the group profile picture
this allows to send an invitation with a profile picture thumbnail of the group
* minor fixes
* added fix for the inviteV4 to be sent
* updated usage example
* minor fix
* ESLint fix
* fix for code 419
* function name getProfilePictureThumb changed to be more clear
* refactor: modules moved to window.Store.GroupParticipants
* refactor: edited link of usage examples
* refactor: LidManipulations changed to LidUtils
* refactor: modules regrouping
To keep the modules in order were made some changes:
- JoinInviteV4 renamed to GroupInviteV4 and grouped with module sendGroupInviteMessage
- GroupParticipants grouped with module sendAddParticipantsRPC
* fix: injectToFunction fixed to work properly
* revert docs changes for Chat
* Merge branch 'main' into fix-add-participants
* docs fixed
* minor fix in injectToFunction
* removed data stringifying/parsing
* added random sleep time logic
* code refactoring
* docs updated
* addParticipants method refactored
* createGroup method extended
- added functionality to send private invitations automatically to missing participants
- added ability to provide value for message timer
- added ability to link a group to the community parent group at the stage of creating a group
- extended the returned data after the method call
* docs updated + typo fixed
* added ability to create group with myself only
* example updated
* docs clarified
* small code refactoring
* window.Store.Invite and window.Store.InviteInfo grouped
* window.compareWwebVersions fixed
* small update to improve the performance of findImpl fix
* gid as wid structure
* docs + example updated
* parenthesis
* avoid sleep after the last iteration
* fixed compatibility issue for sendGroupInviteMessage
* fixed issue with stale groupmetadata
in some cases after the participant has left the group, that participant is still stored in groupmetadata
* fixed compatibility issue for sendAddParticipantsRPC
* minor fix
* jsdocs fixed
* fixed issue with group creation
* fixed createGroup method
- added check for unregistered phone number
- extended returning data from method call: added title
- code refactored
- jsdocs fixed
* fixed addParticipants method
- added check for unregistered number
- code refactored
* docs fixed
* usage example fixed
* removed unnecessary method call
* jsdocs fixed
* check for group admin fixed
* 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