Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3361577
D7096.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
658 B
Referenced Files
None
Subscribers
None
D7096.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7096: [web/desktop] Update immediately on versions v1 and v2
Attached
Detach File
Event Timeline
Log In to Comment