Skip to content

Commit

Permalink
fix: Solved receive location in chatwoot
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidsonGomes committed Jul 25, 2023
1 parent 14529f2 commit f0d8c2d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/whatsapp/services/chatwoot.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1187,10 +1187,11 @@ export class ChatwootService {
audioMessage: msg.audioMessage?.caption,
contactMessage: msg.contactMessage?.vcard,
contactsArrayMessage: msg.contactsArrayMessage,
locationMessage:
msg.locationMessage?.degreesLatitude +
',' +
msg.locationMessage?.degreesLongitude,
locationMessage: !msg.protocolMessage
? msg.locationMessage?.degreesLatitude +
',' +
msg.locationMessage?.degreesLongitude
: undefined,
};

this.logger.verbose('type message: ' + types);
Expand Down

0 comments on commit f0d8c2d

Please sign in to comment.