Remove recording of old messages on sync

This commit is contained in:
Davidson Gomes
2023-06-21 16:52:50 -03:00
parent 5e551fee41
commit 2481650028
2 changed files with 5 additions and 4 deletions

View File

@@ -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;
},