Merge pull request #883 from vidz1979/debounce-message-break

Debounce message break
This commit is contained in:
Davidson Gomes 2024-09-12 15:08:52 -03:00 committed by GitHub
commit 9a1d5664c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -5,6 +5,7 @@
* Define a global proxy to be used if the instance does not have one * Define a global proxy to be used if the instance does not have one
* Save is on whatsapp on the database * Save is on whatsapp on the database
* Add headers to the instance's webhook registration * Add headers to the instance's webhook registration
* Debounce message break is now "\n" instead of white space
### Fixed ### Fixed
@ -16,6 +17,7 @@
* Use exchange name from .env on RabbitMQ * Use exchange name from .env on RabbitMQ
* Fixed chatwoot screen * Fixed chatwoot screen
* It is now possible to send images via the Evolution Channel * It is now possible to send images via the Evolution Channel
* Removed "version" from docker-compose as it is obsolete (https://dev.to/ajeetraina/do-we-still-use-version-in-compose-3inp)
# 2.1.0 (2024-08-26 15:33) # 2.1.0 (2024-08-26 15:33)

View File

@ -1,5 +1,3 @@
version: '3.3'
services: services:
api: api:
container_name: evolution_api container_name: evolution_api
@ -20,6 +18,7 @@ services:
volumes: volumes:
evolution_instances: evolution_instances:
networks: networks:
evolution-net: evolution-net:
name: evolution-net name: evolution-net

View File

@ -1,5 +1,3 @@
version: '3.3'
services: services:
api: api:
container_name: evolution_api container_name: evolution_api
@ -19,6 +17,7 @@ services:
volumes: volumes:
evolution_instances: evolution_instances:
networks: networks:
evolution-net: evolution-net:
name: evolution-net name: evolution-net

View File

@ -108,7 +108,7 @@ export class ChatbotController {
callback: any, callback: any,
) { ) {
if (userMessageDebounce[remoteJid]) { if (userMessageDebounce[remoteJid]) {
userMessageDebounce[remoteJid].message += ` ${content}`; userMessageDebounce[remoteJid].message += `\n${content}`;
this.logger.log('message debounced: ' + userMessageDebounce[remoteJid].message); this.logger.log('message debounced: ' + userMessageDebounce[remoteJid].message);
clearTimeout(userMessageDebounce[remoteJid].timeoutId); clearTimeout(userMessageDebounce[remoteJid].timeoutId);
} else { } else {