diff --git a/Telegram/SourceFiles/core/application.cpp b/Telegram/SourceFiles/core/application.cpp index e3e0de6c6..79dfd0977 100644 --- a/Telegram/SourceFiles/core/application.cpp +++ b/Telegram/SourceFiles/core/application.cpp @@ -270,14 +270,9 @@ void Application::run() { refreshGlobalProxy(); // Depends on app settings being read. - if (const auto old = Local::oldSettingsVersion()) { - if (old < AppVersion) { - autoRegisterUrlScheme(); - Platform::NewVersionLaunched(old); - } - } else { - // Initial launch. + if (const auto old = Local::oldSettingsVersion(); old < AppVersion) { autoRegisterUrlScheme(); + Platform::NewVersionLaunched(old); } if (cAutoStart() && !Platform::AutostartSupported()) {