mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-20 04:12:23 -06:00
fix: reply message
This commit is contained in:
@@ -725,8 +725,6 @@ export class ChatwootService {
|
||||
|
||||
const sourceReplyId = quotedMsg?.chatwootMessageId || null;
|
||||
|
||||
console.log('sourceReplyId', sourceReplyId);
|
||||
|
||||
const message = await client.messages.create({
|
||||
accountId: this.provider.accountId,
|
||||
conversationId: conversationId,
|
||||
@@ -1440,7 +1438,7 @@ export class ChatwootService {
|
||||
},
|
||||
});
|
||||
|
||||
const key = message.key as {
|
||||
const key = message?.key as {
|
||||
id: string;
|
||||
fromMe: boolean;
|
||||
remoteJid: string;
|
||||
@@ -1747,8 +1745,6 @@ export class ChatwootService {
|
||||
|
||||
const quotedId = body.contextInfo?.stanzaId || body.message?.contextInfo?.stanzaId;
|
||||
|
||||
console.log('quotedId', quotedId);
|
||||
|
||||
let quotedMsg = null;
|
||||
|
||||
if (quotedId)
|
||||
@@ -1761,8 +1757,6 @@ export class ChatwootService {
|
||||
},
|
||||
});
|
||||
|
||||
console.log('quotedMsg', quotedMsg);
|
||||
|
||||
const isMedia = this.isMediaMessage(body.message);
|
||||
|
||||
const adsMessage = this.getAdsMessage(body.message);
|
||||
|
||||
Reference in New Issue
Block a user