Streamline code to clean logs based on version number
This commit is contained in:
parent
12f1932d02
commit
f2a63c99ed
2 changed files with 17 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue