diff --git a/Telegram/Resources/uwp/AppX/AppxManifest.xml b/Telegram/Resources/uwp/AppX/AppxManifest.xml index 734a63bc4d4f4d..068e2c2bf51532 100644 --- a/Telegram/Resources/uwp/AppX/AppxManifest.xml +++ b/Telegram/Resources/uwp/AppX/AppxManifest.xml @@ -10,7 +10,7 @@ + Version="4.16.9.0" /> Telegram Desktop Telegram Messenger LLP diff --git a/Telegram/Resources/winrc/Telegram.rc b/Telegram/Resources/winrc/Telegram.rc index 0ba1f802140307..8536098dbb04bf 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 4,16,8,0 - PRODUCTVERSION 4,16,8,0 + FILEVERSION 4,16,9,0 + PRODUCTVERSION 4,16,9,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -62,10 +62,10 @@ BEGIN BEGIN VALUE "CompanyName", "Telegram FZ-LLC" VALUE "FileDescription", "Telegram Desktop" - VALUE "FileVersion", "4.16.8.0" + VALUE "FileVersion", "4.16.9.0" VALUE "LegalCopyright", "Copyright (C) 2014-2024" VALUE "ProductName", "Telegram Desktop" - VALUE "ProductVersion", "4.16.8.0" + VALUE "ProductVersion", "4.16.9.0" END END BLOCK "VarFileInfo" diff --git a/Telegram/Resources/winrc/Updater.rc b/Telegram/Resources/winrc/Updater.rc index fa13de0621ed14..8ae0832aad7d15 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 4,16,8,0 - PRODUCTVERSION 4,16,8,0 + FILEVERSION 4,16,9,0 + PRODUCTVERSION 4,16,9,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", "4.16.8.0" + VALUE "FileVersion", "4.16.9.0" VALUE "LegalCopyright", "Copyright (C) 2014-2024" VALUE "ProductName", "Telegram Desktop" - VALUE "ProductVersion", "4.16.8.0" + VALUE "ProductVersion", "4.16.9.0" END END BLOCK "VarFileInfo" diff --git a/Telegram/SourceFiles/core/version.h b/Telegram/SourceFiles/core/version.h index b27f5c04548a47..97924b37d4c128 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 = 4016008; -constexpr auto AppVersionStr = "4.16.8"; -constexpr auto AppBetaVersion = false; +constexpr auto AppVersion = 4016009; +constexpr auto AppVersionStr = "4.16.9"; +constexpr auto AppBetaVersion = true; constexpr auto AppAlphaVersion = TDESKTOP_ALPHA_VERSION; diff --git a/Telegram/SourceFiles/dialogs/ui/dialogs_suggestions.cpp b/Telegram/SourceFiles/dialogs/ui/dialogs_suggestions.cpp index 096273a755d6d1..59194a3685959a 100644 --- a/Telegram/SourceFiles/dialogs/ui/dialogs_suggestions.cpp +++ b/Telegram/SourceFiles/dialogs/ui/dialogs_suggestions.cpp @@ -1225,7 +1225,6 @@ void Suggestions::paintEvent(QPaintEvent *e) { const auto slide = st::topPeers.height + st::searchedBarHeight; const auto right = (_tab.current() == Tab::Channels); const auto progress = _slideAnimation.value(right ? 1. : 0.); - const auto shift = st::topPeers.height + st::searchedBarHeight; p.setOpacity(1. - progress); p.drawPixmap( anim::interpolate(0, -slide, progress), diff --git a/Telegram/SourceFiles/history/view/media/history_view_web_page.cpp b/Telegram/SourceFiles/history/view/media/history_view_web_page.cpp index c75824a5664e5f..2994ce4a51a372 100644 --- a/Telegram/SourceFiles/history/view/media/history_view_web_page.cpp +++ b/Telegram/SourceFiles/history/view/media/history_view_web_page.cpp @@ -780,8 +780,6 @@ void WebPage::draw(Painter &p, const PaintContext &context) const { const auto offsetY = (single - size.height()) / 2.; const auto x = j * single + offsetX; const auto y = i * single + offsetY; - const auto w = size.width(); - const auto h = size.height(); view->draw(p, context, QRect(QPoint(x, y) + topLeft, size)); } } diff --git a/Telegram/SourceFiles/ui/boxes/choose_font_box.cpp b/Telegram/SourceFiles/ui/boxes/choose_font_box.cpp index 6fe238a1c652ce..9ef7e24e0d5b2e 100644 --- a/Telegram/SourceFiles/ui/boxes/choose_font_box.cpp +++ b/Telegram/SourceFiles/ui/boxes/choose_font_box.cpp @@ -129,7 +129,6 @@ class Selector final : public Ui::RpWidget { [[nodiscard]] bool searching() const; [[nodiscard]] int shownRowsCount() const; [[nodiscard]] Entry &shownRowAt(int index); - [[nodiscard]] const Entry &shownRowAt(int index) const; void applyFilter(const QString &query); void updateSelected(int selected); @@ -179,8 +178,6 @@ Selector::Selector( , _scrollTo(std::move(scrollTo)) , _rowsSkip(st::settingsInfoPhotoSkip) , _rowHeight(_st.height + _st.padding.top() + _st.padding.bottom()) { - Expects(_chosen >= 0 && _chosen < _rows.size()); - setMouseTracking(true); std::move(filter) | rpl::start_with_next([=](const QString &query) { @@ -344,10 +341,6 @@ Selector::Entry &Selector::shownRowAt(int index) { return searching() ? *_filtered[index] : _rows[index]; } -const Selector::Entry &Selector::shownRowAt(int index) const { - return const_cast(this)->shownRowAt(index); -} - void Selector::setMinHeight(int height) { _minHeight = height; if (_minHeight > 0) { @@ -797,7 +790,6 @@ void PreviewPainter::layout() { _bubble = _content.marginsAdded(msgPadding); _content.moveTopLeft(-_bubble.topLeft()); _bubble.moveTopLeft({}); - const auto bubbleShadow = st::msgShadow; _outer = QSize(st::boxWidth, st::boxWidth / 2); diff --git a/Telegram/build/version b/Telegram/build/version index 2b788edeaa81c6..a2ce256dbb2aaf 100644 --- a/Telegram/build/version +++ b/Telegram/build/version @@ -1,7 +1,7 @@ -AppVersion 4016008 +AppVersion 4016009 AppVersionStrMajor 4.16 -AppVersionStrSmall 4.16.8 -AppVersionStr 4.16.8 -BetaChannel 0 +AppVersionStrSmall 4.16.9 +AppVersionStr 4.16.9 +BetaChannel 1 AlphaVersion 0 -AppVersionOriginal 4.16.8 +AppVersionOriginal 4.16.9.beta diff --git a/changelog.txt b/changelog.txt index d6905d010cfd8e..eb2b5948053823 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,10 @@ +4.16.9 beta (23.04.24) + +- Show "Frequent contacts" when you focus the search field. +- Show "Recent chats" when you focus the search field. +- Show "Channels" and channel recommendations. +- Allow changing font in Settings > Chat settings > Font family. + 4.16.8 (16.04.24) - Fix in-app playing of some video and audio files.