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

@ -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)

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