Skip to content

Commit 9a1d566

Browse files
Merge pull request #883 from vidz1979/debounce-message-break
Debounce message break
2 parents f5fbf73 + 7fa41a4 commit 9a1d566

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Define a global proxy to be used if the instance does not have one
66
* Save is on whatsapp on the database
77
* Add headers to the instance's webhook registration
8+
* Debounce message break is now "\n" instead of white space
89

910
### Fixed
1011

@@ -16,6 +17,7 @@
1617
* Use exchange name from .env on RabbitMQ
1718
* Fixed chatwoot screen
1819
* It is now possible to send images via the Evolution Channel
20+
* Removed "version" from docker-compose as it is obsolete (https://dev.to/ajeetraina/do-we-still-use-version-in-compose-3inp)
1921

2022
# 2.1.0 (2024-08-26 15:33)
2123

docker-compose.dev.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.3'
2-
31
services:
42
api:
53
container_name: evolution_api
@@ -20,6 +18,7 @@ services:
2018
volumes:
2119
evolution_instances:
2220

21+
2322
networks:
2423
evolution-net:
2524
name: evolution-net

docker-compose.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: '3.3'
2-
31
services:
42
api:
53
container_name: evolution_api
@@ -19,6 +17,7 @@ services:
1917
volumes:
2018
evolution_instances:
2119

20+
2221
networks:
2322
evolution-net:
2423
name: evolution-net

src/api/integrations/chatbot/chatbot.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export class ChatbotController {
108108
callback: any,
109109
) {
110110
if (userMessageDebounce[remoteJid]) {
111-
userMessageDebounce[remoteJid].message += ` ${content}`;
111+
userMessageDebounce[remoteJid].message += `\n${content}`;
112112
this.logger.log('message debounced: ' + userMessageDebounce[remoteJid].message);
113113
clearTimeout(userMessageDebounce[remoteJid].timeoutId);
114114
} else {

0 commit comments

Comments
 (0)