WhiskeySockets / Baileys

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

fix: update/remove profile picture #1048

Closed Akkun3704 closed 2 months ago

Akkun3704 commented 2 months ago

Fix timeout error when tried to update/remove profile picture

// empty jid for updating/removing our own profile picture
sock.removeProfilePicture(undefined)
sock.updateProfilePicture(undefined, content)

// or group jid for updating/removing group picture
sock.removeProfilePicture('xxx@g.us')
sock.updateProfilePicture('xxx@g.us', content)
whiskeysockets-bot commented 2 months ago

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@Akkun3704/Baileys#profile-picture
# YARN v2
yarn add @whiskeysockets/baileys@Akkun3704/Baileys#profile-picture
DavidsonGomes commented 2 months ago

@PurpShell we need this fix

PurpShell commented 2 months ago

i was unable to modify the branch, closing