From a76658ba467581dc13689b328340ec381d39d689 Mon Sep 17 00:00:00 2001
From: John Preston <johnprestonmail@gmail.com>
Date: Wed, 1 Aug 2018 20:22:41 +0300
Subject: [PATCH] Alpha version 1.3.11.

- Added a new night theme.
- You can now assign custom themes
as night and day themes to quickly switch between them.
---
 Telegram/Resources/uwp/AppX/AppxManifest.xml |  2 +-
 Telegram/Resources/winrc/Telegram.rc         |  8 +-
 Telegram/Resources/winrc/Updater.rc          |  8 +-
 Telegram/SourceFiles/core/changelogs.cpp     | 85 ++------------------
 Telegram/SourceFiles/core/version.h          |  6 +-
 Telegram/build/version                       |  8 +-
 changelog.txt                                |  5 ++
 7 files changed, 28 insertions(+), 94 deletions(-)

diff --git a/Telegram/Resources/uwp/AppX/AppxManifest.xml b/Telegram/Resources/uwp/AppX/AppxManifest.xml
index dce902f6a..3681411aa 100644
--- a/Telegram/Resources/uwp/AppX/AppxManifest.xml
+++ b/Telegram/Resources/uwp/AppX/AppxManifest.xml
@@ -9,7 +9,7 @@
   <Identity Name="TelegramMessengerLLP.TelegramDesktop"
     ProcessorArchitecture="ARCHITECTURE"
     Publisher="CN=536BC709-8EE1-4478-AF22-F0F0F26FF64A"
-    Version="1.3.10.0" />
+    Version="1.3.11.0" />
   <Properties>
     <DisplayName>Telegram Desktop</DisplayName>
     <PublisherDisplayName>Telegram Messenger LLP</PublisherDisplayName>
diff --git a/Telegram/Resources/winrc/Telegram.rc b/Telegram/Resources/winrc/Telegram.rc
index 6c4e25873..900800667 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,3,10,0
- PRODUCTVERSION 1,3,10,0
+ FILEVERSION 1,3,11,0
+ PRODUCTVERSION 1,3,11,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.3.10.0"
+            VALUE "FileVersion", "1.3.11.0"
             VALUE "LegalCopyright", "Copyright (C) 2014-2018"
             VALUE "ProductName", "Telegram Desktop"
-            VALUE "ProductVersion", "1.3.10.0"
+            VALUE "ProductVersion", "1.3.11.0"
         END
     END
     BLOCK "VarFileInfo"
diff --git a/Telegram/Resources/winrc/Updater.rc b/Telegram/Resources/winrc/Updater.rc
index c5e6ac1d0..31a826968 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,3,10,0
- PRODUCTVERSION 1,3,10,0
+ FILEVERSION 1,3,11,0
+ PRODUCTVERSION 1,3,11,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.3.10.0"
+            VALUE "FileVersion", "1.3.11.0"
             VALUE "LegalCopyright", "Copyright (C) 2014-2018"
             VALUE "ProductName", "Telegram Desktop"
-            VALUE "ProductVersion", "1.3.10.0"
+            VALUE "ProductVersion", "1.3.11.0"
         END
     END
     BLOCK "VarFileInfo"
diff --git a/Telegram/SourceFiles/core/changelogs.cpp b/Telegram/SourceFiles/core/changelogs.cpp
index 6931a6b20..d4906ffb5 100644
--- a/Telegram/SourceFiles/core/changelogs.cpp
+++ b/Telegram/SourceFiles/core/changelogs.cpp
@@ -18,84 +18,6 @@ namespace {
 
 std::map<int, const char*> AlphaLogs() {
 	return {
-	{
-		1002002,
-		"\xE2\x80\x94 Grouped photos and videos are displayed as albums."
-	},
-	{
-		1002004,
-		"\xE2\x80\x94 Group media into an album "
-		"when sharing multiple photos and videos.\n"
-
-		"\xE2\x80\x94 Bug fixes and other minor improvements."
-	},
-	{
-		1002005,
-		"\xE2\x80\x94 When viewing a photo from an album, "
-		"you'll see other pictures from the same group "
-		"as thumbnails in the lower part of the screen.\n"
-
-		"\xE2\x80\x94 When composing an album paste "
-		"additional media from the clipboard.\n"
-
-		"\xE2\x80\x94 Bug fixes and other minor improvements."
-	},
-	{
-		1002007,
-		"\xE2\x80\x94 Use fast reply button in group chats.\n"
-
-		"\xE2\x80\x94 Select a message you want to reply to by "
-		"pressing Ctrl+Up and Ctrl+Down."
-	},
-	{
-		1002009,
-		"\xE2\x80\x94 Quick Reply. "
-		"Double click next to any message for a quick reply.\n"
-
-		"\xE2\x80\x94 Search for Stickers. "
-		"Click on the new search icon to access "
-		"your sticker sets or find new ones."
-	},
-	{
-		1002019,
-		"\xE2\x80\x94 Enable proxy for calls in Settings.\n"
-
-		"\xE2\x80\x94 Bug fixes and other minor improvements."
-	},
-	{
-		1002020,
-		"\xE2\x80\x94 Emoji and text replacements are done "
-		"while you type the message.\n"
-
-		"\xE2\x80\x94 Revert emoji and text replacements "
-		"by pressing backspace.\n"
-
-		"\xE2\x80\x94 Disable emoji replacements or suggestions "
-		"in Settings.\n"
-
-		"\xE2\x80\x94 Some critical bug fixes."
-	},
-	{
-		1002022,
-		"\xE2\x80\x94 Use markdown in media captions "
-		"(**bold**, __italic__, `tag` and ```code```).\n"
-
-		"\xE2\x80\x94 Use emoji replacement in media captions, "
-		"group and channel titles and descriptions (:like: etc.)\n"
-
-		"\xE2\x80\x94 Markdown replacement now happens immediately "
-		"after typing (instead of after sending) and can be "
-		"rolled back using Backspace or Ctrl/Cmd + Z. "
-		"Replacement no longer happens when pasting text."
-	},
-	{
-		1002023,
-		"\xE2\x80\x94 Apply formatting from input field context menu.\n"
-
-		"\xE2\x80\x94 Apply formatting by hotkeys.\n"
-
-		"\xE2\x80\x94 Bug fixes and other minor improvements."
-	},
 	{
 		1002024,
 		"\xE2\x80\x94 Add links with custom text from context menu "
@@ -111,6 +33,13 @@ std::map<int, const char*> AlphaLogs() {
 		"\xE2\x80\x94 Telegram Desktop can update itself through MTProto.\n"
 
 		"\xE2\x80\x94 Bug fixes and other minor improvements."
+	},
+	{
+		1003011,
+		"\xE2\x80\x94 Added a new night theme.\n"
+
+		"\xE2\x80\x94 You can now assign custom themes "
+		"as night and day themes to quickly switch between them."
 	}
 	};
 }
diff --git a/Telegram/SourceFiles/core/version.h b/Telegram/SourceFiles/core/version.h
index e4d2a4914..1e9962213 100644
--- a/Telegram/SourceFiles/core/version.h
+++ b/Telegram/SourceFiles/core/version.h
@@ -11,7 +11,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
 
 #define BETA_VERSION_MACRO (0ULL)
 
-constexpr int AppVersion = 1003010;
-constexpr str_const AppVersionStr = "1.3.10";
-constexpr bool AppAlphaVersion = false;
+constexpr int AppVersion = 1003011;
+constexpr str_const AppVersionStr = "1.3.11";
+constexpr bool AppAlphaVersion = true;
 constexpr uint64 AppBetaVersion = BETA_VERSION_MACRO;
diff --git a/Telegram/build/version b/Telegram/build/version
index 1aad249aa..8ed6a4f0e 100644
--- a/Telegram/build/version
+++ b/Telegram/build/version
@@ -1,6 +1,6 @@
-AppVersion         1003010
+AppVersion         1003011
 AppVersionStrMajor 1.3
-AppVersionStrSmall 1.3.10
-AppVersionStr      1.3.10
-AlphaChannel       0
+AppVersionStrSmall 1.3.11
+AppVersionStr      1.3.11
+AlphaChannel       1
 BetaVersion        0
diff --git a/changelog.txt b/changelog.txt
index d1a355d13..730da7bdc 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,3 +1,8 @@
+1.3.11 alpha (01.08.18)
+
+- Added a new night theme. 
+- You can now assign custom themes as night and day themes to quickly switch between them.  
+
 1.3.10 (13.07.18)
 
 - Bug fixes and other minor improvements.