diff --git a/js/background.js b/js/background.js index 0627797dc..8c9b01f6d 100644 --- a/js/background.js +++ b/js/background.js @@ -208,13 +208,18 @@ } }); - function start() { + async function start() { const currentVersion = window.getVersion(); const lastVersion = storage.get('version'); const newVersion = !lastVersion || currentVersion !== lastVersion; - storage.put('version', currentVersion); + await storage.put('version', currentVersion); if (newVersion) { + if (currentVersion === '1.14.2' || currentVersion === '1.15.0-beta.2') { + await window.Signal.Logs.deleteAll(); + window.restart(); + } + console.log( `New version detected: ${currentVersion}; previous: ${lastVersion}` ); diff --git a/js/models/conversations.js b/js/models/conversations.js index 18efe75bb..91e08894d 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -128,7 +128,6 @@ } }, async onExpiredCollection(message) { - console.log('onExpiredCollection', message.attributes); const removeMessage = () => { console.log('Remove expired message from collection', { sentAt: message.get('sent_at'),