From 30e199355b11ea169ff2ad7a5253b29ea832f6ee Mon Sep 17 00:00:00 2001 From: bridiver Date: Wed, 31 Aug 2016 11:19:24 -0700 Subject: [PATCH] clear the lastAccessedTime for all tags when clearing history fixes #3616 --- app/sessionStore.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/sessionStore.js b/app/sessionStore.js index 9c45103b723..848d126ae74 100644 --- a/app/sessionStore.js +++ b/app/sessionStore.js @@ -252,7 +252,12 @@ module.exports.cleanAppData = (data, isShutdown) => { if (data.sites) { const clearHistory = isShutdown && getSetting(settings.SHUTDOWN_CLEAR_HISTORY) === true if (clearHistory) { + // TODO - this should the history methods from siteUtils data.sites = data.sites.filter((site) => site && site.tags && site.tags.length) + data.sites = data.sites.map((site) => { + delete site.lastAccessedTime + return site + }) } } if (data.downloads) {