Skip to content

Commit

Permalink
fix: show multiple vcard as array in body
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasrosa90 committed Oct 26, 2020
1 parent 42dd866 commit b15ec76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b15ec76

Please sign in to comment.