diff --git a/CHANGES b/CHANGES index 12251b92e..9057c7590 100644 --- a/CHANGES +++ b/CHANGES @@ -2779,4 +2779,5 @@ * dashboard: rework filter UI * cpu: rework cpu shares into cpu quota * cifs: enable seal encryption by default +* updatechecker: fix bug where release info was not refreshed diff --git a/src/updatechecker.js b/src/updatechecker.js index d864b2007..b9264e5b0 100644 --- a/src/updatechecker.js +++ b/src/updatechecker.js @@ -14,7 +14,8 @@ const apps = require('./apps.js'), debug = require('debug')('box:updatechecker'), notifications = require('./notifications.js'), paths = require('./paths.js'), - safe = require('safetydance'); + safe = require('safetydance'), + util = require('util'); function setUpdateInfo(state) { // appid -> update info { creationDate, manifest } @@ -75,12 +76,12 @@ async function checkBoxUpdates(options) { return; } - if (state.box && state.box.version === updateInfo.version) { + if (util.isDeepStrictEqual(state.box, updateInfo)) { debug(`checkBoxUpdates: Skipping notification of box update ${updateInfo.version} as user was already notified`); return; } - debug(`checkBoxUpdates: ${updateInfo.version} is available`); + debug(`checkBoxUpdates: ${updateInfo.version} is available. renotification: ${!!state.box}`); const changelog = updateInfo.changelog.map((m) => `* ${m}\n`).join(''); const message = `Changelog:\n${changelog}\n\nGo to the settings view to update.\n\n`;