mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
Merge pull request #868 from judsonjuniorr/v2-fix-chatwoot-quote
Fix chatwoot not mentioning the quoted message
This commit is contained in:
commit
a9e4860a77
@ -1477,7 +1477,7 @@ export class ChatwootService {
|
|||||||
let inReplyToExternalId = null;
|
let inReplyToExternalId = null;
|
||||||
|
|
||||||
if (msg) {
|
if (msg) {
|
||||||
inReplyToExternalId = msg.message?.extendedTextMessage?.contextInfo?.stanzaId;
|
inReplyToExternalId = msg.message?.extendedTextMessage?.contextInfo?.stanzaId ?? msg.contextInfo?.stanzaId;
|
||||||
if (inReplyToExternalId) {
|
if (inReplyToExternalId) {
|
||||||
const message = await this.getMessageByKeyId(instance, inReplyToExternalId);
|
const message = await this.getMessageByKeyId(instance, inReplyToExternalId);
|
||||||
if (message?.chatwootMessageId) {
|
if (message?.chatwootMessageId) {
|
||||||
|
Loading…
Reference in New Issue
Block a user