Preserve device E2EE settings during remote rebuild

This commit is contained in:
vorotamoroz
2026-08-30 07:43:20 +00:00
parent 011a8405b5
commit b28871ab67
4 changed files with 193 additions and 6 deletions
+9
View File
@@ -291,6 +291,15 @@ export async function adjustSettingToRemote(
return true;
}
if (operation === "rebuild") {
// An overwrite makes this device authoritative for both the Vault contents and the
// shared synchronisation settings. The remote lookup above remains a connection
// preflight, but settings from the database which is about to be replaced must not
// overwrite intentional local changes such as enabling E2EE.
log("Rebuild will use this device's synchronisation settings.", LOG_LEVEL_NOTICE);
return true;
}
const remoteTweaks = remoteResult.values;
const necessary = extractObject(TweakValuesShouldMatchedTemplate, remoteTweaks);
// Check if any necessary tweak value is different from current config.