File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/api/integrations/chatbot/chatwoot/services Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -568,16 +568,15 @@ export class ChatwootService {
568568
569569 public async createConversation ( instance : InstanceDto , body : any ) {
570570 const isLid = body . key . previousRemoteJid ?. includes ( '@lid' ) && body . key . senderPn ;
571- const remoteJid = isLid ? body . key . senderPn : body . key . remoteJid ;
571+ const remoteJid = body . key . remoteJid ;
572572 const cacheKey = `${ instance . instanceName } :createConversation-${ remoteJid } ` ;
573573 const lockKey = `${ instance . instanceName } :lock:createConversation-${ remoteJid } ` ;
574574 const maxWaitTime = 5000 ; // 5 secounds
575575
576576 try {
577577 // Processa atualização de contatos já criados @lid
578578 if (
579- body . key . previousRemoteJid ?. includes ( '@lid' ) &&
580- body . key . senderPn &&
579+ isLid &&
581580 body . key . senderPn !== body . key . previousRemoteJid
582581 ) {
583582 const contact = await this . findContact ( instance , body . key . remoteJid . split ( '@' ) [ 0 ] ) ;
You can’t perform that action at this time.
0 commit comments