mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 09:51:24 -06:00
fix: Fixed problem of getting message when deleting message in chatwoot
This commit is contained in:
parent
14f3f3d2ac
commit
d3fce5fc89
@ -3,6 +3,7 @@
|
|||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
* Fixed error return bug
|
* Fixed error return bug
|
||||||
|
* Fixed problem of getting message when deleting message in chatwoot
|
||||||
|
|
||||||
# 1.4.6 (2023-07-26 17:54)
|
# 1.4.6 (2023-07-26 17:54)
|
||||||
|
|
||||||
|
@ -930,6 +930,7 @@ export class ChatwootService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async receiveWebhook(instance: InstanceDto, body: any) {
|
public async receiveWebhook(instance: InstanceDto, body: any) {
|
||||||
|
console.log(body);
|
||||||
try {
|
try {
|
||||||
this.logger.verbose('receive webhook to chatwoot instance: ' + instance.instanceName);
|
this.logger.verbose('receive webhook to chatwoot instance: ' + instance.instanceName);
|
||||||
const client = await this.clientCw(instance);
|
const client = await this.clientCw(instance);
|
||||||
@ -940,7 +941,7 @@ export class ChatwootService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.logger.verbose('check if is bot');
|
this.logger.verbose('check if is bot');
|
||||||
if (!body?.conversation || body.private) return { message: 'bot' };
|
if (!body?.conversation || body.private || body.event === 'message_updated') return { message: 'bot' };
|
||||||
|
|
||||||
this.logger.verbose('check if is group');
|
this.logger.verbose('check if is group');
|
||||||
const chatId =
|
const chatId =
|
||||||
|
Loading…
Reference in New Issue
Block a user