Streamline code to clean logs based on version number
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user