Skip to content

Commit a00ad20

Browse files
chatwoot agent available_name
1 parent 076f2b4 commit a00ad20

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/whatsapp/services/chatwoot.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ export class ChatwootService {
10281028
.replaceAll(/(?<!`)`((?!\s)([^`*]+?)(?<!\s))`(?!`)/g, '```$1```') // Substitui ` por ```
10291029
: body.content;
10301030

1031-
const senderName = body?.sender?.name;
1031+
const senderName = body?.sender?.available_name || body?.sender?.name;
10321032
const waInstance = this.waMonitor.waInstances[instance.instanceName];
10331033

10341034
this.logger.verbose('check if is a message deletion');

0 commit comments

Comments
 (0)