Merge pull request #868 from judsonjuniorr/v2-fix-chatwoot-quote

Fix chatwoot not mentioning the quoted message
This commit is contained in:
Davidson Gomes 2024-09-05 09:31:32 -03:00 committed by GitHub
commit a9e4860a77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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) {