From ab74a9743c46ca4039227a446c2863707234b438 Mon Sep 17 00:00:00 2001 From: Clairton Rodrigo Heinzen Date: Sun, 9 Apr 2023 18:02:13 -0300 Subject: [PATCH] import own message when disable own message is false --- src/services/client_baileys.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/client_baileys.ts b/src/services/client_baileys.ts index 368ffaf3..8d9c7dbd 100644 --- a/src/services/client_baileys.ts +++ b/src/services/client_baileys.ts @@ -175,7 +175,7 @@ export class ClientBaileys implements Client { // eslint-disable-next-line @typescript-eslint/no-explicit-any event('messages.upsert', async (payload: any) => { console.debug('messages.upsert', this.phone, JSON.stringify(payload, null, ' ')) - if (payload.type === 'notify') { + if (payload.type === 'notify' || (payload.type === 'append' && !this.config.ignoreOwnMessages)) { this.listener(payload.messages, false) } else { console.debug('ignore messages.upsert type append')