WhiskeySockets / Baileys

Lightweight full-featured typescript/javascript WhatsApp Web API
https://whiskeysockets.github.io/Baileys/
MIT License
2.7k stars 966 forks source link

fix: enable viewOnce messages to quote #735

Closed arthursimas1 closed 1 month ago

arthursimas1 commented 1 month ago

a viewOnceMessage cannot quote another message.

this PR fixes this by unwrapping the viewOnceMessage to get the original type, assuming that it has viewOnce = true.

whiskeysockets-bot commented 1 month 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@arthursimas1/Baileys#master
# YARN v2
yarn add @whiskeysockets/baileys@arthursimas1/Baileys#master
arthursimas1 commented 1 month ago

wrong branch name