fix: sending list of contacts

This commit is contained in:
Adhiraj Singh
2021-12-16 23:20:27 +05:30
parent 9474017930
commit 6c4a9c7354

View File

@@ -223,6 +223,8 @@ export const generateWAMessageContent = async(
}
if(contactLen === 1) {
m.contactMessage = WAProto.ContactMessage.fromObject(message.contacts.contacts[0])
} else {
m.contactsArrayMessage = WAProto.ContactsArrayMessage.fromObject(message.contacts)
}
} else if('location' in message) {
m.locationMessage = WAProto.LocationMessage.fromObject(message.location)