fix(settings): persist sessionRetentionAction through the settings sanitizer

This commit is contained in:
Gautam0507
2026-08-15 00:39:36 +05:30
parent 72cd861eb8
commit b15b20fe08
2 changed files with 38 additions and 0 deletions
@@ -375,6 +375,9 @@ export const createSettingsHelpers = (dependencies) => {
const normalizedDays = Math.max(1, Math.min(365, Math.round(candidate.autoDeleteAfterDays)));
result.autoDeleteAfterDays = normalizedDays;
}
if (candidate.sessionRetentionAction === 'archive' || candidate.sessionRetentionAction === 'delete') {
result.sessionRetentionAction = candidate.sessionRetentionAction;
}
if (candidate.tunnelBootstrapTtlMs === null) {
result.tunnelBootstrapTtlMs = null;
} else if (typeof candidate.tunnelBootstrapTtlMs === 'number' && Number.isFinite(candidate.tunnelBootstrapTtlMs)) {