File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -1019,8 +1019,6 @@ export class ChatwootService {
10191019 this . logger . verbose ( 'check if is group' ) ;
10201020 const chatId =
10211021 body . conversation . meta . sender ?. phone_number ?. replace ( '+' , '' ) || body . conversation . meta . sender ?. identifier ;
1022- // Alterado por Edison Martins em 16/12/2023
1023- // const messageReceived = body.content;
10241022 const messageReceived = body . content
10251023 . replaceAll ( / \* ( (? ! \s ) ( [ ^ \n * ] + ?) (?< ! \s ) ) \* / g, '_$1_' ) // Substitui * por _
10261024 . replaceAll ( / \* { 2 } ( (? ! \s ) ( [ ^ \n * ] + ?) (?< ! \s ) ) \* { 2 } / g, '*$1*' ) // Substitui ** por *
@@ -1483,8 +1481,6 @@ export class ChatwootService {
14831481
14841482 this . logger . verbose ( 'get conversation message' ) ;
14851483
1486- // Alterado por Edison Martins em 15/12/2023
1487- // const bodyMessage = await this.getConversationMessage(body.message);
14881484 const bodyMessage = await this . getConversationMessage ( body . message )
14891485 . replaceAll ( / \* ( (? ! \s ) ( [ ^ \n * ] + ?) (?< ! \s ) ) \* / g, '**$1**' )
14901486 . replaceAll ( / _ ( (? ! \s ) ( [ ^ \n _ ] + ?) (?< ! \s ) ) _ / g, '*$1*' )
You can’t perform that action at this time.
0 commit comments