Skip to content

Commit 4c00697

Browse files
committed
fix: Fixed chatwoot line wrap issue
1 parent de67604 commit 4c00697

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 1.4.4 (homolog)
2+
3+
### Fixed
4+
5+
* Fixed chatwoot line wrap issue
6+
17
# 1.4.3 (2023-07-25 10:51)
28

39
### Fixed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "evolution-api",
3-
"version": "1.4.3",
3+
"version": "1.4.4",
44
"description": "Rest api for communication with WhatsApp",
55
"main": "./dist/src/main.js",
66
"scripts": {

src/whatsapp/services/chatwoot.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,12 +1125,12 @@ export class ChatwootService {
11251125
}
11261126

11271127
if (body.message_type === 'template' && body.event === 'message_created') {
1128-
this.logger.verbose('check if is csat');
1128+
this.logger.verbose('check if is template');
11291129

11301130
const data: SendTextDto = {
11311131
number: chatId,
11321132
textMessage: {
1133-
text: body.content,
1133+
text: body.content.replace(/\\\r\n|\\\n|\n/g, '\n'),
11341134
},
11351135
options: {
11361136
delay: 1200,

0 commit comments

Comments
 (0)