mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-20 20:49:14 +00:00
fix: show multiple vcard as array in body
This commit is contained in:
@@ -46,7 +46,7 @@ class Message extends Base {
|
|||||||
* Message content
|
* Message content
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
this.body = this.hasMedia ? data.caption || '' : data.body || '';
|
this.body = data.type === MessageTypes.CONTACT_CARD_MULTI ? data.vcardList.map((c) => c.vcard) : this.hasMedia ? data.caption || '' : data.body || '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Message type
|
* Message type
|
||||||
|
|||||||
Reference in New Issue
Block a user