2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Possible fix for repeating changelogs

This commit is contained in:
RadRussianRus
2021-04-19 00:21:23 +03:00
parent 1d1676de2e
commit d6715f1aec

View File

@@ -175,7 +175,9 @@ std::unique_ptr<Changelogs> Changelogs::Create(
const auto oldVersion = local.oldVersion();
const auto oldKotatoVersion = Local::oldKotatoVersion();
local.clearOldVersion();
return (!cKotatoFirstRun() && oldKotatoVersion < AppKotatoVersion)
return (!cKotatoFirstRun()
&& oldVersion != 0
&& oldKotatoVersion < AppKotatoVersion)
? std::make_unique<Changelogs>(session, oldVersion, oldKotatoVersion)
: nullptr;
}