diff --git a/Telegram/Resources/uwp/AppX/AppxManifest.xml b/Telegram/Resources/uwp/AppX/AppxManifest.xml index 4d50941d87..9cbc3dd010 100644 --- a/Telegram/Resources/uwp/AppX/AppxManifest.xml +++ b/Telegram/Resources/uwp/AppX/AppxManifest.xml @@ -9,7 +9,7 @@ + Version="1.1.8.0" /> Telegram Desktop Telegram Messenger LLP diff --git a/Telegram/Resources/winrc/Telegram.rc b/Telegram/Resources/winrc/Telegram.rc index 427352f7a3..2b14f5d782 100644 --- a/Telegram/Resources/winrc/Telegram.rc +++ b/Telegram/Resources/winrc/Telegram.rc @@ -34,8 +34,8 @@ IDI_ICON1 ICON "..\\art\\icon256.ico" // VS_VERSION_INFO VERSIONINFO - FILEVERSION 1,1,7,3 - PRODUCTVERSION 1,1,7,3 + FILEVERSION 1,1,8,0 + PRODUCTVERSION 1,1,8,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -52,10 +52,10 @@ BEGIN BEGIN VALUE "CompanyName", "Telegram Messenger LLP" VALUE "FileDescription", "Telegram Desktop" - VALUE "FileVersion", "1.1.7.3" + VALUE "FileVersion", "1.1.8.0" VALUE "LegalCopyright", "Copyright (C) 2014-2017" VALUE "ProductName", "Telegram Desktop" - VALUE "ProductVersion", "1.1.7.3" + VALUE "ProductVersion", "1.1.8.0" END END BLOCK "VarFileInfo" diff --git a/Telegram/Resources/winrc/Updater.rc b/Telegram/Resources/winrc/Updater.rc index c0b2b69e12..fd095a0740 100644 --- a/Telegram/Resources/winrc/Updater.rc +++ b/Telegram/Resources/winrc/Updater.rc @@ -25,8 +25,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US // VS_VERSION_INFO VERSIONINFO - FILEVERSION 1,1,7,3 - PRODUCTVERSION 1,1,7,3 + FILEVERSION 1,1,8,0 + PRODUCTVERSION 1,1,8,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -43,10 +43,10 @@ BEGIN BEGIN VALUE "CompanyName", "Telegram Messenger LLP" VALUE "FileDescription", "Telegram Desktop Updater" - VALUE "FileVersion", "1.1.7.3" + VALUE "FileVersion", "1.1.8.0" VALUE "LegalCopyright", "Copyright (C) 2014-2017" VALUE "ProductName", "Telegram Desktop" - VALUE "ProductVersion", "1.1.7.3" + VALUE "ProductVersion", "1.1.8.0" END END BLOCK "VarFileInfo" diff --git a/Telegram/SourceFiles/apiwrap.cpp b/Telegram/SourceFiles/apiwrap.cpp index 7798e8cb84..bc9e669259 100644 --- a/Telegram/SourceFiles/apiwrap.cpp +++ b/Telegram/SourceFiles/apiwrap.cpp @@ -57,8 +57,21 @@ void ApiWrap::start() { if (oldVersion > 0 && oldVersion < AppVersion) { _changelogSubscription = subscribe(_session->data().moreChatsLoaded(), [this, oldVersion] { auto oldVersionString = qsl("%1.%2.%3").arg(oldVersion / 1000000).arg((oldVersion % 1000000) / 1000).arg(oldVersion % 1000); - request(MTPhelp_GetAppChangelog(MTP_string(oldVersionString))).done([this](const MTPUpdates &result) { + request(MTPhelp_GetAppChangelog(MTP_string(oldVersionString))).done([this, oldVersion](const MTPUpdates &result) { applyUpdates(result); + + auto addLocalChangelog = [this, oldVersion](int changeVersion, const char *changes) { + if (oldVersion < changeVersion) { + auto changeVersionString = QString::number(changeVersion / 1000000) + '.' + QString::number((changeVersion % 1000000) / 1000) + ((changeVersion % 1000) ? ('.' + QString::number(changeVersion % 1000)) : QString()); + auto text = qsl("New in version %1:\n\n").arg(changeVersionString) + QString::fromUtf8(changes).trimmed(); + auto textWithEntities = TextWithEntities { text }; + textParseEntities(textWithEntities.text, TextParseLinks, &textWithEntities.entities); + App::main()->serviceNotification(textWithEntities, MTP_messageMediaEmpty(), unixtime()); + } + }; + if (cAlphaVersion() || cBetaVersion()) { + addLocalChangelog(1001008, "\xE2\x80\x94 Toggle night mode in the main menu.\n"); + } }).send(); unsubscribe(base::take(_changelogSubscription)); }); diff --git a/Telegram/SourceFiles/core/version.h b/Telegram/SourceFiles/core/version.h index c6d6622e9d..19894e0288 100644 --- a/Telegram/SourceFiles/core/version.h +++ b/Telegram/SourceFiles/core/version.h @@ -22,9 +22,9 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org #include "core/utils.h" -#define BETA_VERSION_MACRO (1001007003ULL) +#define BETA_VERSION_MACRO (0ULL) -constexpr int AppVersion = 1001007; -constexpr str_const AppVersionStr = "1.1.7"; -constexpr bool AppAlphaVersion = false; +constexpr int AppVersion = 1001008; +constexpr str_const AppVersionStr = "1.1.8"; +constexpr bool AppAlphaVersion = true; constexpr uint64 AppBetaVersion = BETA_VERSION_MACRO; diff --git a/Telegram/build/version b/Telegram/build/version index a63937c216..70bafb3a6a 100644 --- a/Telegram/build/version +++ b/Telegram/build/version @@ -1,6 +1,6 @@ -AppVersion 1001007 +AppVersion 1001008 AppVersionStrMajor 1.1 -AppVersionStrSmall 1.1.7 -AppVersionStr 1.1.7 -AlphaChannel 0 -BetaVersion 1001007003 +AppVersionStrSmall 1.1.8 +AppVersionStr 1.1.8 +AlphaChannel 1 +BetaVersion 0 diff --git a/changelog.txt b/changelog.txt index 5cc98a8f37..73fed94f4b 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ +1.1.8 alpha (30.06.17) + +- Toggle night mode in the main menu. + 1.1.7 (30.05.17) - Improved video messages: radial playback progress, Picture-in-Picture support, duration countdown.