fix: show multiple vcard as array in body

This commit is contained in:
Lucas Rosa
2020-10-26 16:23:26 -03:00
parent 42dd866a53
commit b15ec768d3

View File

@@ -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