Merge pull request #307 from gabrielpastori1/chatwoot-format

Chatwoot Agent Name
This commit is contained in:
Davidson Gomes 2023-12-19 17:15:32 -03:00 committed by GitHub
commit 53ee270096
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1028,7 +1028,7 @@ export class ChatwootService {
.replaceAll(/(?<!`)`((?!\s)([^`*]+?)(?<!\s))`(?!`)/g, '```$1```') // Substitui ` por ```
: body.content;
const senderName = body?.sender?.name;
const senderName = body?.sender?.available_name || body?.sender?.name;
const waInstance = this.waMonitor.waInstances[instance.instanceName];
this.logger.verbose('check if is a message deletion');