Page MenuHomePhabricator

D7096.id23826.diff
No OneTemporary

D7096.id23826.diff

diff --git a/web/modals/update-modal.react.js b/web/modals/update-modal.react.js
--- a/web/modals/update-modal.react.js
+++ b/web/modals/update-modal.react.js
@@ -74,6 +74,12 @@
React.useEffect(
() =>
electron?.onNewVersionAvailable?.(version => {
+ // On these versions we want to update immediately because there's
+ // an issue if the user decides to update 10min after showing the modal
+ if (electron?.version === '1.0.0' || electron?.version === '2.0.0') {
+ electron?.updateToNewVersion?.();
+ }
+
pushModal(
<UpdateModal
title={`Version ${version} is available!`}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 7:27 PM (21 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2580637
Default Alt Text
D7096.id23826.diff (658 B)

Event Timeline