Skip to content

mentionedIds is wrong on Quoted Messages #3003

@jrocha

Description

@jrocha

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is brokenhelp wantedCommunity help needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions