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

Feat: Block messages from unknown numbers #1071

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

bobslavtriev
Copy link
Contributor

@bobslavtriev bobslavtriev commented Oct 1, 2024

Usage:

updateMessagesPrivacy(value)

type value -> 'all' or 'contacts'

** The function will work for Baileys, only if it is available on your WhatsApp application **

@whiskeysockets-bot
Copy link
Contributor

Thanks for your contribution.

The next step is to wait for review and approval to merge it to main repository

The community can help reacting with a thumb up (:thumbsup:) for approval and rocket (:rocket:) for who has tested it.

To test this PR you can run the following command below:

# NPM
npm install @whiskeysockets/baileys@bobslavtriev/Baileys#privacy
# YARN v2
yarn add @whiskeysockets/baileys@bobslavtriev/Baileys#privacy

@brunocgc
Copy link

brunocgc commented Oct 2, 2024

I performed tests on the common WhatsApp that this privacy function has not yet been released, it allowed the change but I can no longer enter these numbers either on WhatsApp Web or Desktop.

When testing with WhatsApp Beta that has this privacy works perfectly.

The message is like a warning signal about the update.

Performed tests on 5 devices with common WhatsApp (3 normal and 2 Business), and one device with WhatsApp Business Beta.

Realizei testes no WhatsApp comum que ainda não está liberado essa função de privacidade, ele permitiu a alteração porém não consigo mais entrar com esses números nem no WhatsApp Web e nem Desktop.

Ao testar com WhatsApp Beta que tem essa privacidade funciona perfeitamente.

A mensagem é como sinal de alerta sobre a atualização.

Realizado testes em 5 aparelhos com WhatsApp comum (3 normal e 2 Business), e um aparelho com o WhatsApp Business Beta.

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

Successfully merging this pull request may close these issues.

3 participants