From 248165002867b927318a3888c646e8f93864d47b Mon Sep 17 00:00:00 2001 From: Davidson Gomes Date: Wed, 21 Jun 2023 16:52:50 -0300 Subject: [PATCH] Remove recording of old messages on sync --- CHANGELOG.md | 1 + src/whatsapp/services/whatsapp.service.ts | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index acbcae34..fcf09506 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ * fixed the problem of not disabling the global webhook by the variable * Adjustment in the recording of temporary files and periodic cleaning * Fix for container mode also work only with files +* Remove recording of old messages on sync # 1.0.9 (2023-06-10) diff --git a/src/whatsapp/services/whatsapp.service.ts b/src/whatsapp/services/whatsapp.service.ts index 714b219e..70f46577 100644 --- a/src/whatsapp/services/whatsapp.service.ts +++ b/src/whatsapp/services/whatsapp.service.ts @@ -691,10 +691,10 @@ export class WAStartupService { this.sendDataWebhook(Events.MESSAGES_SET, [...messagesRaw]); - await this.repository.message.insert( - [...messagesRaw], - database.SAVE_DATA.OLD_MESSAGE, - ); + // await this.repository.message.insert( + // [...messagesRaw], + // database.SAVE_DATA.OLD_MESSAGE, + // ); messages = undefined; },