We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 49410d7 + 16a0e6b commit a9e4860Copy full SHA for a9e4860
src/api/integrations/chatbot/chatwoot/services/chatwoot.service.ts
@@ -1477,7 +1477,7 @@ export class ChatwootService {
1477
let inReplyToExternalId = null;
1478
1479
if (msg) {
1480
- inReplyToExternalId = msg.message?.extendedTextMessage?.contextInfo?.stanzaId;
+ inReplyToExternalId = msg.message?.extendedTextMessage?.contextInfo?.stanzaId ?? msg.contextInfo?.stanzaId;
1481
if (inReplyToExternalId) {
1482
const message = await this.getMessageByKeyId(instance, inReplyToExternalId);
1483
if (message?.chatwootMessageId) {
0 commit comments