From 9a521c5340efd4b1242c6ed0853f3d7c358a124f Mon Sep 17 00:00:00 2001
From: John Preston <johnprestonmail@gmail.com>
Date: Sun, 8 Sep 2019 21:32:31 +0300
Subject: [PATCH] Beta version 1.8.5.

- Create new themes based on your color and wallpaper choices.
- Share your themes with other users via links.
- Update your theme for all its users when you change something.
---
 Telegram/Resources/uwp/AppX/AppxManifest.xml |  2 +-
 Telegram/Resources/winrc/Telegram.rc         |  8 ++++----
 Telegram/Resources/winrc/Updater.rc          |  8 ++++----
 Telegram/SourceFiles/core/changelogs.cpp     | 10 +++++++++-
 Telegram/SourceFiles/core/version.h          |  6 +++---
 Telegram/build/version                       |  8 ++++----
 changelog.txt                                |  6 ++++++
 7 files changed, 31 insertions(+), 17 deletions(-)

diff --git a/Telegram/Resources/uwp/AppX/AppxManifest.xml b/Telegram/Resources/uwp/AppX/AppxManifest.xml
index 84c1000c1..83d083dae 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.8.4.0" />
+    Version="1.8.5.0" />
   <Properties>
     <DisplayName>Telegram Desktop</DisplayName>
     <PublisherDisplayName>Telegram FZ-LLC</PublisherDisplayName>
diff --git a/Telegram/Resources/winrc/Telegram.rc b/Telegram/Resources/winrc/Telegram.rc
index 46019d212..b4cefb103 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,8,4,0
- PRODUCTVERSION 1,8,4,0
+ FILEVERSION 1,8,5,0
+ PRODUCTVERSION 1,8,5,0
  FILEFLAGSMASK 0x3fL
 #ifdef _DEBUG
  FILEFLAGS 0x1L
@@ -52,10 +52,10 @@ BEGIN
         BEGIN
             VALUE "CompanyName", "Telegram FZ-LLC"
             VALUE "FileDescription", "Telegram Desktop"
-            VALUE "FileVersion", "1.8.4.0"
+            VALUE "FileVersion", "1.8.5.0"
             VALUE "LegalCopyright", "Copyright (C) 2014-2019"
             VALUE "ProductName", "Telegram Desktop"
-            VALUE "ProductVersion", "1.8.4.0"
+            VALUE "ProductVersion", "1.8.5.0"
         END
     END
     BLOCK "VarFileInfo"
diff --git a/Telegram/Resources/winrc/Updater.rc b/Telegram/Resources/winrc/Updater.rc
index 8023a09e2..9bff3217e 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,8,4,0
- PRODUCTVERSION 1,8,4,0
+ FILEVERSION 1,8,5,0
+ PRODUCTVERSION 1,8,5,0
  FILEFLAGSMASK 0x3fL
 #ifdef _DEBUG
  FILEFLAGS 0x1L
@@ -43,10 +43,10 @@ BEGIN
         BEGIN
             VALUE "CompanyName", "Telegram FZ-LLC"
             VALUE "FileDescription", "Telegram Desktop Updater"
-            VALUE "FileVersion", "1.8.4.0"
+            VALUE "FileVersion", "1.8.5.0"
             VALUE "LegalCopyright", "Copyright (C) 2014-2019"
             VALUE "ProductName", "Telegram Desktop"
-            VALUE "ProductVersion", "1.8.4.0"
+            VALUE "ProductVersion", "1.8.5.0"
         END
     END
     BLOCK "VarFileInfo"
diff --git a/Telegram/SourceFiles/core/changelogs.cpp b/Telegram/SourceFiles/core/changelogs.cpp
index 40222ccc9..dc92ebcae 100644
--- a/Telegram/SourceFiles/core/changelogs.cpp
+++ b/Telegram/SourceFiles/core/changelogs.cpp
@@ -51,7 +51,15 @@ std::map<int, const char*> BetaLogs() {
 		"\xE2\x80\xA2 Use strikethrough and underline formatting.\n"
 
 		"\xE2\x80\xA2 Bug fixes and other minor improvements."
-	}
+	},
+	{
+		1008005,
+		"\xE2\x80\xA2 Create new themes based on your color and wallpaper choices.\n"
+
+		"\xE2\x80\xA2 Share your themes with other users via links.\n"
+
+		"\xE2\x80\xA2 Update your theme for all its users when you change something.\n"
+	},
 	};
 };
 
diff --git a/Telegram/SourceFiles/core/version.h b/Telegram/SourceFiles/core/version.h
index 22d8b8e3b..92df3cf55 100644
--- a/Telegram/SourceFiles/core/version.h
+++ b/Telegram/SourceFiles/core/version.h
@@ -15,7 +15,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
 #define TDESKTOP_ALPHA_VERSION (0ULL)
 #endif // TDESKTOP_OFFICIAL_TARGET
 
-constexpr auto AppVersion = 1008004;
-constexpr auto AppVersionStr = "1.8.4";
-constexpr auto AppBetaVersion = false;
+constexpr auto AppVersion = 1008005;
+constexpr auto AppVersionStr = "1.8.5";
+constexpr auto AppBetaVersion = true;
 constexpr auto AppAlphaVersion = TDESKTOP_ALPHA_VERSION;
diff --git a/Telegram/build/version b/Telegram/build/version
index 04703095a..4a26ce821 100644
--- a/Telegram/build/version
+++ b/Telegram/build/version
@@ -1,6 +1,6 @@
-AppVersion         1008004
+AppVersion         1008005
 AppVersionStrMajor 1.8
-AppVersionStrSmall 1.8.4
-AppVersionStr      1.8.4
-BetaChannel        0
+AppVersionStrSmall 1.8.5
+AppVersionStr      1.8.5
+BetaChannel        1
 AlphaVersion       0
diff --git a/changelog.txt b/changelog.txt
index 6b4592449..9c9ca8980 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,3 +1,9 @@
+1.8.5 (08.09.19)
+
+- Create new themes based on your color and wallpaper choices.
+- Share your themes with other users via links.
+- Update your theme for all its users when you change something.
+
 1.8.4 (06.09.19)
 
 - Bug fixes and other minor improvements.