From b15ec768d32de98a2dadf9ef8ea36f024525c225 Mon Sep 17 00:00:00 2001 From: Lucas Rosa Date: Mon, 26 Oct 2020 16:23:26 -0300 Subject: [PATCH] fix: show multiple vcard as array in body --- src/structures/Message.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Message.js b/src/structures/Message.js index 4eaaba2..5214fe8 100644 --- a/src/structures/Message.js +++ b/src/structures/Message.js @@ -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