whatsapp-web.js
whatsapp-web.js copied to clipboard
mentionedIds is wrong on Quoted Messages
Is there an existing issue for this?
- [X] I have searched the existing issues
Describe the bug
(await messsge.getQuotedMessage()).mentionedIds
is returning an object and docs states that it should be returning a string[]
.
Also, mentionedIds in regular incomming msgs are returning string[]
.
The returned object has the following structure:
{
server: 'c.us',
user: '0000000000000',
_serialized: '[email protected]'
}
I guess the best place to fix would be in Message._patch
, but unsure about that. Suggestions are welcome to create PR.
Expected behavior
(await messsge.getQuotedMessage()).mentionedIds
should return a string[]
Steps to Reproduce the Bug or Issue
- try to read
(await messsge.getQuotedMessage()).mentionedIds
as astring[]
Relevant Code
No response
Browser Type
Google Chrome
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
OS: Ubuntu 22.04.4 LTS Phone OS: Android whatsapp-web.js version: webpack-exodus WhatsApp Web version 2.3000.1013216022 Node.js Version: v18.20.1
Additional context
No response