init web crypto

This commit is contained in:
fyears
2021-11-04 10:10:05 +08:00
parent cb0098ec85
commit f04017e05b
4 changed files with 85 additions and 61 deletions
+7 -1
View File
@@ -355,7 +355,13 @@ export const doActualSync = async (
remoteEncryptedKey
);
} else if (state.decision === "delremote_clearhist") {
await deleteFromRemote(s3Client, s3Config, state.key, password, remoteEncryptedKey);
await deleteFromRemote(
s3Client,
s3Config,
state.key,
password,
remoteEncryptedKey
);
await clearDeleteRenameHistoryOfKey(db, state.key);
} else if (state.decision === "upload") {
const remoteObjMeta = await uploadToRemote(