Streamline code to clean logs based on version number

This commit is contained in:
Scott Nonnenberg 2018-07-20 14:52:52 -07:00
parent 12f1932d02
commit f2a63c99ed
2 changed files with 17 additions and 1 deletions

View file

@ -252,7 +252,10 @@
await storage.put('version', currentVersion);
if (newVersion) {
if (currentVersion === '1.14.2' || currentVersion === '1.15.0-beta.2') {
if (
lastVersion &&
window.isBeforeVersion(lastVersion, 'v1.15.0-beta.4')
) {
await window.Signal.Logs.deleteAll();
window.restart();
}