fix: Fixed chatwoot line wrap issue

This commit is contained in:
Davidson Gomes 2023-07-25 11:52:26 -03:00
parent de676041df
commit 4c006970a2
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
# 1.4.4 (homolog)
### Fixed
* Fixed chatwoot line wrap issue
# 1.4.3 (2023-07-25 10:51)
### Fixed

View File

@ -1,6 +1,6 @@
{
"name": "evolution-api",
"version": "1.4.3",
"version": "1.4.4",
"description": "Rest api for communication with WhatsApp",
"main": "./dist/src/main.js",
"scripts": {

View File

@ -1125,12 +1125,12 @@ export class ChatwootService {
}
if (body.message_type === 'template' && body.event === 'message_created') {
this.logger.verbose('check if is csat');
this.logger.verbose('check if is template');
const data: SendTextDto = {
number: chatId,
textMessage: {
text: body.content,
text: body.content.replace(/\\\r\n|\\\n|\n/g, '\n'),
},
options: {
delay: 1200,