Change default value of maxTotalChatBackups

This commit is contained in:
Cohee
2024-12-08 14:04:13 +02:00
parent 3849908fe1
commit 7098e17d22
2 changed files with 2 additions and 2 deletions

View File

@@ -99,7 +99,7 @@ disableChatBackup: false
# Number of backups to keep for each chat and settings file
numberOfBackups: 50
# Maximum number of chat backups to keep per user (starting from the most recent). Set to -1 to keep all backups.
maxTotalChatBackups: 500
maxTotalChatBackups: -1
# Interval in milliseconds to throttle chat backups per user
chatBackupThrottleInterval: 10000
# Allowed hosts for card downloads

View File

@@ -33,7 +33,7 @@ function backupChat(directory, name, chat) {
removeOldBackups(directory, `chat_${name}_`);
const maxTotalChatBackups = Number(getConfigValue('maxTotalChatBackups', 500));
const maxTotalChatBackups = Number(getConfigValue('maxTotalChatBackups', -1));
if (isNaN(maxTotalChatBackups) || maxTotalChatBackups < 0) {
return;
}