Alpha 1.1.8.

- Toggle night mode in the main menu.
This commit is contained in:
John Preston 2017-06-30 09:23:31 +03:00
parent 8d14112c5a
commit 197cdc3928
7 changed files with 36 additions and 19 deletions

View File

@ -9,7 +9,7 @@
<Identity Name="TelegramMessengerLLP.TelegramDesktop"
ProcessorArchitecture="ARCHITECTURE"
Publisher="CN=536BC709-8EE1-4478-AF22-F0F0F26FF64A"
Version="1.1.7.3" />
Version="1.1.8.0" />
<Properties>
<DisplayName>Telegram Desktop</DisplayName>
<PublisherDisplayName>Telegram Messenger LLP</PublisherDisplayName>

View File

@ -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"

View File

@ -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"

View File

@ -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));
});

View File

@ -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;

View File

@ -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

View File

@ -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.