Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3361798
D7096.id23826.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.id23826.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, 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)
Attached To
Mode
D7096: [web/desktop] Update immediately on versions v1 and v2
Attached
Detach File
Event Timeline
Log In to Comment