We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14529f2 commit f0d8c2dCopy full SHA for f0d8c2d
src/whatsapp/services/chatwoot.service.ts
@@ -1187,10 +1187,11 @@ export class ChatwootService {
1187
audioMessage: msg.audioMessage?.caption,
1188
contactMessage: msg.contactMessage?.vcard,
1189
contactsArrayMessage: msg.contactsArrayMessage,
1190
- locationMessage:
1191
- msg.locationMessage?.degreesLatitude +
1192
- ',' +
1193
- msg.locationMessage?.degreesLongitude,
+ locationMessage: !msg.protocolMessage
+ ? msg.locationMessage?.degreesLatitude +
+ ',' +
+ msg.locationMessage?.degreesLongitude
1194
+ : undefined,
1195
};
1196
1197
this.logger.verbose('type message: ' + types);
0 commit comments