π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
More unawaited
Manav Rathibda522679674
diff --git a/desktop/src/main.ts b/desktop/src/main.tsindex b0c51fb937..f5ad891588 100644--- a/desktop/src/main.ts+++ b/desktop/src/main.ts@@ -202,8 +202,8 @@ const createMainWindow = () => {app.dock.hide();});- window.on("show", () => {- if (process.platform == "darwin") app.dock.show();+ window.on("show", async () => {+ if (process.platform == "darwin") await app.dock.show();});// Let ipcRenderer know when mainWindow is in the foreground so that it can@@ -257,7 +257,7 @@ export const allowExternalLinks = (webContents: WebContents) => {// Returning `action` "deny" accomplishes this.webContents.setWindowOpenHandler(({ url }) => {if (!url.startsWith(rendererURL)) {- shell.openExternal(url);+ void shell.openExternal(url);return { action: "deny" };} else {return { action: "allow" };@@ -377,7 +377,7 @@ const main = () => {allowExternalLinks(mainWindow.webContents);// Start loading the renderer.- mainWindow.loadURL(rendererURL);+ void mainWindow.loadURL(rendererURL);// Continue on with the rest of the startup sequence.Menu.setApplicationMenu(await createApplicationMenu(mainWindow));@@ -385,8 +385,8 @@ const main = () => {if (!isDev) setupAutoUpdater(mainWindow);try {- deleteLegacyDiskCacheDirIfExists();- deleteLegacyKeysStoreIfExists();+ await deleteLegacyDiskCacheDirIfExists();+ await deleteLegacyKeysStoreIfExists();} catch (e) {// Log but otherwise ignore errors during non-critical startup// actions.diff --git a/desktop/src/main/services/app-update.ts b/desktop/src/main/services/app-update.tsindex e20d42fb70..a9e3109342 100644--- a/desktop/src/main/services/app-update.ts+++ b/desktop/src/main/services/app-update.ts@@ -13,7 +13,7 @@ export const setupAutoUpdater = (mainWindow: BrowserWindow) => {const oneDay = 1 * 24 * 60 * 60 * 1000;setInterval(() => checkForUpdatesAndNotify(mainWindow), oneDay);- checkForUpdatesAndNotify(mainWindow);+ void checkForUpdatesAndNotify(mainWindow);};/**@@ -22,7 +22,7 @@ export const setupAutoUpdater = (mainWindow: BrowserWindow) => {export const forceCheckForAppUpdates = (mainWindow: BrowserWindow) => {userPreferences.delete("skipAppVersion");userPreferences.delete("muteUpdateNotificationVersion");- checkForUpdatesAndNotify(mainWindow);+ void checkForUpdatesAndNotify(mainWindow);};const checkForUpdatesAndNotify = async (mainWindow: BrowserWindow) => {@@ -56,7 +56,7 @@ const checkForUpdatesAndNotify = async (mainWindow: BrowserWindow) => {mainWindow.webContents.send("appUpdateAvailable", update);log.debug(() => "Attempting auto update");- autoUpdater.downloadUpdate();+ await autoUpdater.downloadUpdate();let timeoutId: ReturnType<typeof setTimeout>;const fiveMinutes = 5 * 60 * 1000;