Skip to content

Commit

Permalink
Merge pull request EvolutionAPI#868 from judsonjuniorr/v2-fix-chatwoo…
Browse files Browse the repository at this point in the history
…t-quote

Fix chatwoot not mentioning the quoted message
  • Loading branch information
DavidsonGomes authored Sep 5, 2024
2 parents 49410d7 + 16a0e6b commit a9e4860
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a9e4860

Please sign in to comment.