diff --git a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp index 229b376362..4d3cd7f953 100644 --- a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp +++ b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp @@ -3253,7 +3253,7 @@ not_null OverlayWidget::widget() const { void OverlayWidget::hide() { clearBeforeHide(); - applyHideWindowWorkaround(); + //applyHideWindowWorkaround(); _window->hide(); } diff --git a/Telegram/SourceFiles/menu/menu_sponsored.cpp b/Telegram/SourceFiles/menu/menu_sponsored.cpp index 3d7105fe92..bb8109d2b3 100644 --- a/Telegram/SourceFiles/menu/menu_sponsored.cpp +++ b/Telegram/SourceFiles/menu/menu_sponsored.cpp @@ -143,7 +143,7 @@ void AboutBox( lt_link, tr::lng_settings_privacy_premium_link( ) | rpl::map([=](QString t) { - return Ui::Text::Link(t, kUrl.utf8()); + return Ui::Text::Link(t, kUrl.utf16()); }), Ui::Text::RichLangValue), st::sponsoredAboutRemoveIcon); @@ -179,7 +179,7 @@ void AboutBox( rpl::single(arrow), Ui::Text::RichLangValue ) | rpl::map([=](TextWithEntities text) { - return Ui::Text::Link(std::move(text), kUrl.utf8()); + return Ui::Text::Link(std::move(text), kUrl.utf16()); }), Ui::Text::RichLangValue ) | rpl::start_with_next([=, l = label]( diff --git a/Telegram/SourceFiles/statistics/statistics_data_deserialize.cpp b/Telegram/SourceFiles/statistics/statistics_data_deserialize.cpp index e6368052e0..ac649cf133 100644 --- a/Telegram/SourceFiles/statistics/statistics_data_deserialize.cpp +++ b/Telegram/SourceFiles/statistics/statistics_data_deserialize.cpp @@ -61,7 +61,8 @@ Data::StatisticalChart StatisticalChartFromJSON(const QByteArray &json) { line.isHiddenOnStart = ranges::contains(hiddenLines, columnId); line.y.resize(length); for (auto i = 0; i < length; i++) { - const auto value = array.at(i + 1).toInteger(); + const auto value = int(base::SafeRound( + array.at(i + 1).toDouble())); line.y[i] = value; if (value > line.maxValue) { line.maxValue = value; diff --git a/Telegram/lib_ui b/Telegram/lib_ui index 476d751251..bdf4ff34f2 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit 476d751251c8571e11260b7c712c885f4191d717 +Subproject commit bdf4ff34f24ef75d5209addf756633f9db6cb232