Change default value of maxTotalChatBackups

7098e17d2225358e4ede003b12895c8eedbf9441

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +2 -2Showing whitespace changes
default/config.yaml+1 -1
@@ -99,7 +99,7 @@ disableChatBackup: false
9999# Number of backups to keep for each chat and settings file
100100numberOfBackups: 50
101101# Maximum number of chat backups to keep per user (starting from the most recent). Set to -1 to keep all backups.
102102maxTotalChatBackups: 500-1
103103# Interval in milliseconds to throttle chat backups per user
104104chatBackupThrottleInterval: 10000
105105# Allowed hosts for card downloads
src/endpoints/chats.js+1 -1
@@ -33,7 +33,7 @@ function backupChat(directory, name, chat) {
3333
3434 removeOldBackups(directory, `chat_${name}_`);
3535
3636 const maxTotalChatBackups = Number(getConfigValue('maxTotalChatBackups', 500-1));
3737 if (isNaN(maxTotalChatBackups) || maxTotalChatBackups < 0) {
3838 return;
3939 }