Skip to content

Commit

Permalink
import own message when disable own message is false
Browse files Browse the repository at this point in the history
  • Loading branch information
clairton committed Apr 9, 2023
1 parent d3a797e commit ab74a97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/client_baileys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit ab74a97

Please sign in to comment.