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

mentionedIds is wrong on Quoted Messages #3003

Open
1 task done
jrocha opened this issue May 2, 2024 · 0 comments
Open
1 task done

mentionedIds is wrong on Quoted Messages #3003

jrocha opened this issue May 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jrocha
Copy link

jrocha commented May 2, 2024

Is there an existing issue for this?

  • 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: '0000000000000@c.us'
}

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

  1. try to read (await messsge.getQuotedMessage()).mentionedIds as a string[]

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

@jrocha jrocha added the bug Something isn't working label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant