Skip to content

Commit 16a0e6b

Browse files
committed
Fix chatwoot not mentioning the quoted message
1 parent 49410d7 commit 16a0e6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ export class ChatwootService {
14771477
let inReplyToExternalId = null;
14781478

14791479
if (msg) {
1480-
inReplyToExternalId = msg.message?.extendedTextMessage?.contextInfo?.stanzaId;
1480+
inReplyToExternalId = msg.message?.extendedTextMessage?.contextInfo?.stanzaId ?? msg.contextInfo?.stanzaId;
14811481
if (inReplyToExternalId) {
14821482
const message = await this.getMessageByKeyId(instance, inReplyToExternalId);
14831483
if (message?.chatwootMessageId) {

0 commit comments

Comments
 (0)