mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-22 20:12:02 -06:00
fix: adjusts for chatwoot v3
This commit is contained in:
parent
854c7ed04d
commit
c9b24ff612
@ -1297,6 +1297,16 @@ export class ChatwootService {
|
||||
return;
|
||||
}
|
||||
|
||||
this.logger.verbose('get conversation message');
|
||||
const bodyMessage = await this.getConversationMessage(body.message);
|
||||
|
||||
const isMedia = this.isMediaMessage(body.message);
|
||||
|
||||
if (!bodyMessage && !isMedia) {
|
||||
this.logger.warn('no body message found');
|
||||
return;
|
||||
}
|
||||
|
||||
this.logger.verbose('get conversation in chatwoot');
|
||||
const getConversion = await this.createConversation(instance, body);
|
||||
|
||||
@ -1309,18 +1319,8 @@ export class ChatwootService {
|
||||
|
||||
this.logger.verbose('message type: ' + messageType);
|
||||
|
||||
const isMedia = this.isMediaMessage(body.message);
|
||||
|
||||
this.logger.verbose('is media: ' + isMedia);
|
||||
|
||||
this.logger.verbose('get conversation message');
|
||||
const bodyMessage = await this.getConversationMessage(body.message);
|
||||
|
||||
if (!bodyMessage && !isMedia) {
|
||||
this.logger.warn('no body message found');
|
||||
return;
|
||||
}
|
||||
|
||||
this.logger.verbose('check if is media');
|
||||
if (isMedia) {
|
||||
this.logger.verbose('message is media');
|
||||
|
Loading…
Reference in New Issue
Block a user