diff --git a/Telegram/Resources/uwp/AppX/AppxManifest.xml b/Telegram/Resources/uwp/AppX/AppxManifest.xml
index 579eb99a57b25..5111b03688d68 100644
--- a/Telegram/Resources/uwp/AppX/AppxManifest.xml
+++ b/Telegram/Resources/uwp/AppX/AppxManifest.xml
@@ -10,7 +10,7 @@
+ Version="5.9.2.0" />
Telegram Desktop
Telegram Messenger LLP
diff --git a/Telegram/Resources/winrc/Telegram.rc b/Telegram/Resources/winrc/Telegram.rc
index bc5248a109448..3f9084e1d41f6 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 5,9,1,0
- PRODUCTVERSION 5,9,1,0
+ FILEVERSION 5,9,2,0
+ PRODUCTVERSION 5,9,2,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@@ -62,10 +62,10 @@ BEGIN
BEGIN
VALUE "CompanyName", "Telegram FZ-LLC"
VALUE "FileDescription", "Telegram Desktop"
- VALUE "FileVersion", "5.9.1.0"
+ VALUE "FileVersion", "5.9.2.0"
VALUE "LegalCopyright", "Copyright (C) 2014-2024"
VALUE "ProductName", "Telegram Desktop"
- VALUE "ProductVersion", "5.9.1.0"
+ VALUE "ProductVersion", "5.9.2.0"
END
END
BLOCK "VarFileInfo"
diff --git a/Telegram/Resources/winrc/Updater.rc b/Telegram/Resources/winrc/Updater.rc
index d6d1e6e70b94c..c65b7c50e6d01 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 5,9,1,0
- PRODUCTVERSION 5,9,1,0
+ FILEVERSION 5,9,2,0
+ PRODUCTVERSION 5,9,2,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", "5.9.1.0"
+ VALUE "FileVersion", "5.9.2.0"
VALUE "LegalCopyright", "Copyright (C) 2014-2024"
VALUE "ProductName", "Telegram Desktop"
- VALUE "ProductVersion", "5.9.1.0"
+ VALUE "ProductVersion", "5.9.2.0"
END
END
BLOCK "VarFileInfo"
diff --git a/Telegram/SourceFiles/boxes/star_gift_box.cpp b/Telegram/SourceFiles/boxes/star_gift_box.cpp
index dd96429e50fbd..99092f81ce3d2 100644
--- a/Telegram/SourceFiles/boxes/star_gift_box.cpp
+++ b/Telegram/SourceFiles/boxes/star_gift_box.cpp
@@ -164,10 +164,6 @@ class PreviewWrap final : public Ui::RpWidget {
return info.limitedCount && !info.limitedLeft;
}
-[[nodiscard]] bool IsInStock(const Api::StarGift &info) {
- return !IsSoldOut(info);
-}
-
PreviewDelegate::PreviewDelegate(
not_null parent,
not_null st,
diff --git a/Telegram/SourceFiles/core/version.h b/Telegram/SourceFiles/core/version.h
index f7ffe12c6eb99..4104f0f66c2d4 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 = 5009001;
-constexpr auto AppVersionStr = "5.9.1";
+constexpr auto AppVersion = 5009002;
+constexpr auto AppVersionStr = "5.9.2";
constexpr auto AppBetaVersion = true;
constexpr auto AppAlphaVersion = TDESKTOP_ALPHA_VERSION;
diff --git a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp
index a0bef34faa831..a6716aa913630 100644
--- a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp
+++ b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp
@@ -1245,7 +1245,6 @@ object_ptr DetailsFiller::setupInfo() {
label->geometryValue(),
button->sizeValue()
) | rpl::start_with_next([=](int width, QRect, QSize buttonSize) {
- const auto s = parent->size();
button->moveToRight(
rightSkip,
(parent->height() - buttonSize.height()) / 2);
diff --git a/Telegram/build/version b/Telegram/build/version
index 77e62836061eb..84c19f78647b9 100644
--- a/Telegram/build/version
+++ b/Telegram/build/version
@@ -1,7 +1,7 @@
-AppVersion 5009001
+AppVersion 5009002
AppVersionStrMajor 5.9
-AppVersionStrSmall 5.9.1
-AppVersionStr 5.9.1
+AppVersionStrSmall 5.9.2
+AppVersionStr 5.9.2
BetaChannel 1
AlphaVersion 0
-AppVersionOriginal 5.9.1.beta
+AppVersionOriginal 5.9.2.beta
diff --git a/changelog.txt b/changelog.txt
index 9afdf62b19e93..feedc8e058d30 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,3 +1,12 @@
+5.9.2 beta (24.12.24)
+
+- Fix some jump-to-message highlightings.
+- Fix some long round video messages sending.
+- Fix possible crash in global photos / videos.
+- Fix streaming starting for some large video files.
+- Fix possible drop of top peers / recent chats cache.
+- Fix possible crashes in audio on macOS (rollback OpenAL).
+
5.9.1 beta (18.12.24)
- Add global media overview tabs in chats search.