diff --git a/Telegram/Resources/uwp/AppX/AppxManifest.xml b/Telegram/Resources/uwp/AppX/AppxManifest.xml
index 24bf59a0f..efc9b9867 100644
--- a/Telegram/Resources/uwp/AppX/AppxManifest.xml
+++ b/Telegram/Resources/uwp/AppX/AppxManifest.xml
@@ -9,7 +9,7 @@
+ Version="2.8.10.0" />
Telegram Desktop
Telegram Messenger LLP
diff --git a/Telegram/Resources/winrc/Telegram.rc b/Telegram/Resources/winrc/Telegram.rc
index b91f06e7a..9aaa19846 100644
--- a/Telegram/Resources/winrc/Telegram.rc
+++ b/Telegram/Resources/winrc/Telegram.rc
@@ -44,8 +44,8 @@ IDI_ICON1 ICON "..\\art\\icon256.ico"
//
VS_VERSION_INFO VERSIONINFO
- FILEVERSION 2,8,9,0
- PRODUCTVERSION 2,8,9,0
+ FILEVERSION 2,8,10,0
+ PRODUCTVERSION 2,8,10,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@@ -62,10 +62,10 @@ BEGIN
BEGIN
VALUE "CompanyName", "Telegram FZ-LLC"
VALUE "FileDescription", "Telegram Desktop"
- VALUE "FileVersion", "2.8.9.0"
+ VALUE "FileVersion", "2.8.10.0"
VALUE "LegalCopyright", "Copyright (C) 2014-2021"
VALUE "ProductName", "Telegram Desktop"
- VALUE "ProductVersion", "2.8.9.0"
+ VALUE "ProductVersion", "2.8.10.0"
END
END
BLOCK "VarFileInfo"
diff --git a/Telegram/Resources/winrc/Updater.rc b/Telegram/Resources/winrc/Updater.rc
index d6ec83aa5..6449f489a 100644
--- a/Telegram/Resources/winrc/Updater.rc
+++ b/Telegram/Resources/winrc/Updater.rc
@@ -35,8 +35,8 @@ LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
//
VS_VERSION_INFO VERSIONINFO
- FILEVERSION 2,8,9,0
- PRODUCTVERSION 2,8,9,0
+ FILEVERSION 2,8,10,0
+ PRODUCTVERSION 2,8,10,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@@ -53,10 +53,10 @@ BEGIN
BEGIN
VALUE "CompanyName", "Telegram FZ-LLC"
VALUE "FileDescription", "Telegram Desktop Updater"
- VALUE "FileVersion", "2.8.9.0"
+ VALUE "FileVersion", "2.8.10.0"
VALUE "LegalCopyright", "Copyright (C) 2014-2021"
VALUE "ProductName", "Telegram Desktop"
- VALUE "ProductVersion", "2.8.9.0"
+ VALUE "ProductVersion", "2.8.10.0"
END
END
BLOCK "VarFileInfo"
diff --git a/Telegram/SourceFiles/core/version.h b/Telegram/SourceFiles/core/version.h
index 987db52fe..ca16da5a8 100644
--- a/Telegram/SourceFiles/core/version.h
+++ b/Telegram/SourceFiles/core/version.h
@@ -22,7 +22,7 @@ constexpr auto AppId = "{53F49750-6209-4FBF-9CA8-7A333C87D1ED}"_cs;
constexpr auto AppNameOld = "Telegram Win (Unofficial)"_cs;
constexpr auto AppName = "Telegram Desktop"_cs;
constexpr auto AppFile = "Telegram"_cs;
-constexpr auto AppVersion = 2008009;
-constexpr auto AppVersionStr = "2.8.9";
+constexpr auto AppVersion = 2008010;
+constexpr auto AppVersionStr = "2.8.10";
constexpr auto AppBetaVersion = false;
constexpr auto AppAlphaVersion = TDESKTOP_ALPHA_VERSION;
diff --git a/Telegram/SourceFiles/mtproto/mtproto_dc_options.cpp b/Telegram/SourceFiles/mtproto/mtproto_dc_options.cpp
index d642dffca..7458a7ba3 100644
--- a/Telegram/SourceFiles/mtproto/mtproto_dc_options.cpp
+++ b/Telegram/SourceFiles/mtproto/mtproto_dc_options.cpp
@@ -19,6 +19,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
namespace MTP {
namespace {
+constexpr auto kVersion = 2;
+
using namespace details;
struct BuiltInDc {
@@ -437,8 +439,6 @@ QByteArray DcOptions::serialize() const {
}
}
- constexpr auto kVersion = 1;
-
auto result = QByteArray();
result.reserve(size);
{
@@ -541,7 +541,7 @@ bool DcOptions::constructFromSerialized(const QByteArray &serialized) {
}
// Read CDN config
- if (!stream.atEnd()) {
+ if (!stream.atEnd() && version > 1) {
auto count = qint32(0);
stream >> count;
if (stream.status() != QDataStream::Ok) {
diff --git a/Telegram/build/version b/Telegram/build/version
index abf7e0e2d..7f1d2a158 100644
--- a/Telegram/build/version
+++ b/Telegram/build/version
@@ -1,7 +1,7 @@
-AppVersion 2008009
+AppVersion 2008010
AppVersionStrMajor 2.8
-AppVersionStrSmall 2.8.9
-AppVersionStr 2.8.9
+AppVersionStrSmall 2.8.10
+AppVersionStr 2.8.10
BetaChannel 0
AlphaVersion 0
-AppVersionOriginal 2.8.9
+AppVersionOriginal 2.8.10
diff --git a/changelog.txt b/changelog.txt
index 4d6fe3fe8..d1a002317 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,3 +1,7 @@
+2.8.10 (16.07.21)
+
+- Fix media loading.
+
2.8.9 (16.07.21)
- Fix GIF caption edit.