Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create option to not synchronize statuses posted by cell phone contacts #964

Open
vitorvk2 opened this issue Jul 30, 2024 · 1 comment
Open

Comments

@vitorvk2
Copy link

Before adding this issue, make sure you do the following to make sure this is not a duplicate:

  1. Search through the repo's previous issues
  2. Read through the readme at least once
  3. Search the docs for the feature you're looking for

Just describe the feature

Is your feature request related to a problem? Please describe.
One of the biggest causes of instabilities and high consumption of RAM by the library is the synchronization of statuses posted by clients.

Messages exchanged in conversations use little RAM, as it is just text, while the statuses are all videos, therefore, a cell phone that has, for example, 5000 saved contacts, receives an avalanche of statuses as soon as it connects, throwing RAM resources there on top and consequently bringing instability to the library.

Describe the solution you'd like
It would be interesting to add an option at client startup to choose whether or not to synchronize statuses.

If you do not want to synchronize the statuses, you must make the following deletions:

  • As soon as you connect the chip, you should not pull the statuses during the initial synchronization;
  • When the chip is already connected, it should not receive the new statuses that contacts are posting;
  • It is important to maintain synchronization of the statuses that are posted by the connected device, because if a contact responds to that status, and it is not synchronized in the library, it will not be possible to link that the message received is the response to a status.

Describe alternatives you've considered
It is necessary to follow the criteria stated above.

Additional context
In another library, this mechanism was implemented to suppress the receipt of status from contacts, receiving only data relating to messages responded to statuses forwarded by the connected number.

If you want to consult, the activity is at this link:
wppconnect-team/wa-js#981

@vitorvk2
Copy link
Author

@vitorvk2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant