Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Direct

Manav Rathidf0b8cc44e29
diff --git a/web/packages/base/session.ts b/web/packages/base/session.ts
index 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);
};
/**