Change default value of maxTotalChatBackups

7098e17d2225358e4ede003b12895c8eedbf9441

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

2 files changed, +2 -2Ignore whitespace
default/config.yaml+1 -1
@@ -99,7 +99,7 @@ disableChatBackup: false
99# Number of backups to keep for each chat and settings file99# Number of backups to keep for each chat and settings file
100numberOfBackups: 50100numberOfBackups: 50
101# Maximum number of chat backups to keep per user (starting from the most recent). Set to -1 to keep all backups.101# Maximum number of chat backups to keep per user (starting from the most recent). Set to -1 to keep all backups.
102maxTotalChatBackups: 500102maxTotalChatBackups: -1
103# Interval in milliseconds to throttle chat backups per user103# Interval in milliseconds to throttle chat backups per user
104chatBackupThrottleInterval: 10000104chatBackupThrottleInterval: 10000
105# Allowed hosts for card downloads105# Allowed hosts for card downloads
src/endpoints/chats.js+1 -1
@@ -33,7 +33,7 @@ function backupChat(directory, name, chat) {
3333
34 removeOldBackups(directory, `chat_${name}_`);34 removeOldBackups(directory, `chat_${name}_`);
3535
36 const maxTotalChatBackups = Number(getConfigValue('maxTotalChatBackups', 500));36 const maxTotalChatBackups = Number(getConfigValue('maxTotalChatBackups', -1));
37 if (isNaN(maxTotalChatBackups) || maxTotalChatBackups < 0) {37 if (isNaN(maxTotalChatBackups) || maxTotalChatBackups < 0) {
38 return;38 return;
39 }39 }