fix: Fixed issue sending contact to Chatwoot via iOS

This commit is contained in:
Davidson Gomes
2023-12-12 16:28:01 -03:00
parent f246516a6e
commit ade3952016
3 changed files with 18 additions and 6 deletions

View File

@@ -1795,11 +1795,12 @@ export class WAStartupService {
if ((this.localTypebot.enabled && type === 'notify') || typebotSessionRemoteJid) {
if (!(this.localTypebot.listening_from_me === false && messageRaw.key.fromMe === true)) {
await this.typebotService.sendTypebot(
{ instanceName: this.instance.name },
messageRaw.key.remoteJid,
messageRaw,
);
if (messageRaw.messageType !== 'reactionMessage')
await this.typebotService.sendTypebot(
{ instanceName: this.instance.name },
messageRaw.key.remoteJid,
messageRaw,
);
}
}