π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Direct
Manav Rathidf0b8cc44e29
diff --git a/web/packages/base/session.ts b/web/packages/base/session.tsindex ac36dba640..42f679623e 100644--- a/web/packages/base/session.ts+++ b/web/packages/base/session.ts@@ -81,16 +81,9 @@ export const masterKeyFromSession = async () => {** @param masterKey The user's master key (as a base64 encoded string).*/-export const saveMasterKeyInSessionAndSafeStore = async (- masterKey: string,- // TODO: ?- fromDesktop?: boolean,-) => {+export const saveMasterKeyInSessionAndSafeStore = async (masterKey: string) => {await saveKeyInSessionStore("encryptionKey", masterKey);- const electron = globalThis.electron;- if (electron && !fromDesktop) {- await electron.saveMasterKeyInSafeStorage(masterKey);- }+ await globalThis.electron?.saveMasterKeyInSafeStorage(masterKey);};/**