fix: show multiple vcard as array in body
This commit is contained in:
parent
42dd866a53
commit
b15ec768d3
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ class Message extends Base {
|
|||
* Message content
|
||||
* @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
|
||||
|
|
|
|||
Loading…
Reference in a new issue