mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-25 18:08:40 -06:00
Merge pull request #1728 from KokeroO/develop
Some checks failed
Build Docker image / Build and Deploy (push) Has been cancelled
Some checks failed
Build Docker image / Build and Deploy (push) Has been cancelled
Fix: [Chatwoot] Corrige mensagens editas
This commit is contained in:
commit
cdef7dc9f9
@ -1085,7 +1085,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
const editedMessage =
|
const editedMessage =
|
||||||
received?.message?.protocolMessage || received?.message?.editedMessage?.message?.protocolMessage;
|
received?.message?.protocolMessage || received?.message?.editedMessage?.message?.protocolMessage;
|
||||||
|
|
||||||
if (received.message?.protocolMessage?.editedMessage && editedMessage) {
|
if (editedMessage) {
|
||||||
if (this.configService.get<Chatwoot>('CHATWOOT').ENABLED && this.localChatwoot?.enabled)
|
if (this.configService.get<Chatwoot>('CHATWOOT').ENABLED && this.localChatwoot?.enabled)
|
||||||
this.chatwootService.eventWhatsapp(
|
this.chatwootService.eventWhatsapp(
|
||||||
'messages.edit',
|
'messages.edit',
|
||||||
@ -1133,7 +1133,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
(type !== 'notify' && type !== 'append') ||
|
(type !== 'notify' && type !== 'append') ||
|
||||||
received.message?.protocolMessage ||
|
editedMessage ||
|
||||||
received.message?.pollUpdateMessage ||
|
received.message?.pollUpdateMessage ||
|
||||||
!received?.message
|
!received?.message
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user