Skip to content

Commit f0d8c2d

Browse files
committed
fix: Solved receive location in chatwoot
1 parent 14529f2 commit f0d8c2d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/whatsapp/services/chatwoot.service.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,10 +1187,11 @@ export class ChatwootService {
11871187
audioMessage: msg.audioMessage?.caption,
11881188
contactMessage: msg.contactMessage?.vcard,
11891189
contactsArrayMessage: msg.contactsArrayMessage,
1190-
locationMessage:
1191-
msg.locationMessage?.degreesLatitude +
1192-
',' +
1193-
msg.locationMessage?.degreesLongitude,
1190+
locationMessage: !msg.protocolMessage
1191+
? msg.locationMessage?.degreesLatitude +
1192+
',' +
1193+
msg.locationMessage?.degreesLongitude
1194+
: undefined,
11941195
};
11951196

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

0 commit comments

Comments
 (0)