Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: do not show update available dialog

Abdullah Atta2705caf6bdbc
diff --git a/apps/web/src/common/dialog-controller.tsx b/apps/web/src/common/dialog-controller.tsx
index 9777ac536..6ab4a9501 100644
--- a/apps/web/src/common/dialog-controller.tsx
+++ b/apps/web/src/common/dialog-controller.tsx
@@ -695,19 +695,6 @@ export async function showUpdateAvailableNotice({
});
}
-export async function showUpdateReadyNotice({ version }: { version: string }) {
- const changelog = await getChangelog(version);
- return await showUpdateDialog({
- title: `Update ready for installation`,
- subtitle: `v${version} is ready to be installed.`,
- changelog,
- action: {
- text: "Install now",
- onClick: () => installUpdate()
- }
- });
-}
-
type UpdateDialogProps = {
title: string;
subtitle: string;
diff --git a/apps/web/src/hooks/use-auto-updater.ts b/apps/web/src/hooks/use-auto-updater.ts
index f9a2f6175..e5622b504 100644
--- a/apps/web/src/hooks/use-auto-updater.ts
+++ b/apps/web/src/hooks/use-auto-updater.ts
@@ -18,10 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { useEffect, useState } from "react";
-import {
- showUpdateAvailableNotice,
- showUpdateReadyNotice
-} from "../common/dialog-controller";
import { isDesktop } from "../utils/platform";
import { checkForUpdate } from "../utils/updater";
import { AppEventManager, AppEvents } from "../common/app-events";
@@ -58,9 +54,6 @@ export function useAutoUpdater() {
type: "available",
version: info.version
});
- showUpdateAvailableNotice({
- version: info.version
- });
}
function updateNotAvailable() {
@@ -70,7 +63,6 @@ export function useAutoUpdater() {
function updateDownloadCompleted(info: { version: string }) {
changeStatus({ type: "completed", version: info.version });
- showUpdateReadyNotice({ version: info.version });
}
function updateDownloadProgress(progressInfo: { percent: number }) {