Change default value of maxTotalChatBackups
| @@ -99,7 +99,7 @@ disableChatBackup: false | ||
| 99 | 99 | # Number of backups to keep for each chat and settings file |
| 100 | 100 | numberOfBackups: 50 |
| 101 | 101 | # Maximum number of chat backups to keep per user (starting from the most recent). Set to -1 to keep all backups. |
| 102 | 102 | maxTotalChatBackups: 500-1 |
| 103 | 103 | # Interval in milliseconds to throttle chat backups per user |
| 104 | 104 | chatBackupThrottleInterval: 10000 |
| 105 | 105 | # Allowed hosts for card downloads |
| @@ -33,7 +33,7 @@ function backupChat(directory, name, chat) { | ||
| 33 | 33 | |
| 34 | 34 | removeOldBackups(directory, `chat_${name}_`); |
| 35 | 35 | |
| 36 | 36 | const maxTotalChatBackups = Number(getConfigValue('maxTotalChatBackups', 500-1)); |
| 37 | 37 | if (isNaN(maxTotalChatBackups) || maxTotalChatBackups < 0) { |
| 38 | 38 | return; |
| 39 | 39 | } |