Page MenuHomePhabricator

D7096.diff
No OneTemporary

D7096.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, 6:12 PM (19 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2580637
Default Alt Text
D7096.diff (658 B)

Event Timeline