WhiskeySockets / Baileys

Lightweight full-featured typescript/javascript WhatsApp Web API
https://baileys.whiskeysockets.io/
MIT License
3.94k stars 1.34k forks source link

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

Open vitorvk2 opened 3 months ago

vitorvk2 commented 3 months ago

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:

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: https://github.com/wppconnect-team/wa-js/issues/981

vitorvk2 commented 3 months ago

@vitorvk2

dandrade-pedbot commented 1 week ago

Same problem πŸ‘πŸ½

felipeferrari99 commented 1 week ago

Same problem :+1:

mattmachad commented 1 week ago

Same problem

ChristianPedbot commented 1 week ago

Same problem πŸ‘πŸ½

ricardoa1x commented 1 week ago

Same problem

AlanPedBot commented 1 week ago

Same problem πŸ‘πŸ½