Fix chatwoot not mentioning the quoted message

This commit is contained in:
Judson Cairo 2024-09-05 09:28:57 -03:00
parent 49410d7d5e
commit 16a0e6b18e

View File

@ -1477,7 +1477,7 @@ export class ChatwootService {
let inReplyToExternalId = null;
if (msg) {
inReplyToExternalId = msg.message?.extendedTextMessage?.contextInfo?.stanzaId;
inReplyToExternalId = msg.message?.extendedTextMessage?.contextInfo?.stanzaId ?? msg.contextInfo?.stanzaId;
if (inReplyToExternalId) {
const message = await this.getMessageByKeyId(instance, inReplyToExternalId);
if (message?.chatwootMessageId) {