mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-15 19:52:54 -06:00
fix: Fixed issue sending contact to Chatwoot via iOS
This commit is contained in:
parent
f246516a6e
commit
ade3952016
@ -27,6 +27,7 @@
|
|||||||
* Correction of chatwoot functioning with admin flows
|
* Correction of chatwoot functioning with admin flows
|
||||||
* Fixed problem that did not generate qrcode with the chatwoot_conversation_pending option enabled
|
* Fixed problem that did not generate qrcode with the chatwoot_conversation_pending option enabled
|
||||||
* Fixed issue where CSAT opened a new ticket when reopen_conversation was disabled
|
* Fixed issue where CSAT opened a new ticket when reopen_conversation was disabled
|
||||||
|
* Fixed issue sending contact to Chatwoot via iOS
|
||||||
|
|
||||||
### Integrations
|
### Integrations
|
||||||
|
|
||||||
|
@ -1373,6 +1373,11 @@ export class ChatwootService {
|
|||||||
formattedContact += `\n**number ${numberCount}:** ${phoneNumber}`;
|
formattedContact += `\n**number ${numberCount}:** ${phoneNumber}`;
|
||||||
numberCount++;
|
numberCount++;
|
||||||
}
|
}
|
||||||
|
if (key.includes('TEL')) {
|
||||||
|
const phoneNumber = contactInfo[key];
|
||||||
|
formattedContact += `\n**number:** ${phoneNumber}`;
|
||||||
|
numberCount++;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.logger.verbose('message content: ' + formattedContact);
|
this.logger.verbose('message content: ' + formattedContact);
|
||||||
@ -1401,6 +1406,11 @@ export class ChatwootService {
|
|||||||
formattedContact += `\n**number ${numberCount}:** ${phoneNumber}`;
|
formattedContact += `\n**number ${numberCount}:** ${phoneNumber}`;
|
||||||
numberCount++;
|
numberCount++;
|
||||||
}
|
}
|
||||||
|
if (key.includes('TEL')) {
|
||||||
|
const phoneNumber = contactInfo[key];
|
||||||
|
formattedContact += `\n**number:** ${phoneNumber}`;
|
||||||
|
numberCount++;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return formattedContact;
|
return formattedContact;
|
||||||
@ -1458,7 +1468,7 @@ export class ChatwootService {
|
|||||||
this.logger.verbose('get conversation message');
|
this.logger.verbose('get conversation message');
|
||||||
const bodyMessage = await this.getConversationMessage(body.message);
|
const bodyMessage = await this.getConversationMessage(body.message);
|
||||||
|
|
||||||
if (bodyMessage.includes('Por favor, classifique esta conversa, http')) {
|
if (bodyMessage && bodyMessage.includes('Por favor, classifique esta conversa, http')) {
|
||||||
this.logger.verbose('conversation is closed');
|
this.logger.verbose('conversation is closed');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1795,11 +1795,12 @@ export class WAStartupService {
|
|||||||
|
|
||||||
if ((this.localTypebot.enabled && type === 'notify') || typebotSessionRemoteJid) {
|
if ((this.localTypebot.enabled && type === 'notify') || typebotSessionRemoteJid) {
|
||||||
if (!(this.localTypebot.listening_from_me === false && messageRaw.key.fromMe === true)) {
|
if (!(this.localTypebot.listening_from_me === false && messageRaw.key.fromMe === true)) {
|
||||||
await this.typebotService.sendTypebot(
|
if (messageRaw.messageType !== 'reactionMessage')
|
||||||
{ instanceName: this.instance.name },
|
await this.typebotService.sendTypebot(
|
||||||
messageRaw.key.remoteJid,
|
{ instanceName: this.instance.name },
|
||||||
messageRaw,
|
messageRaw.key.remoteJid,
|
||||||
);
|
messageRaw,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user