Skip to content

Commit 53ee270

Browse files
Merge pull request #307 from gabrielpastori1/chatwoot-format
Chatwoot Agent Name
2 parents e8764dd + a00ad20 commit 53ee270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)