diff --git a/Telegram/SourceFiles/dialogs/ui/dialogs_top_bar_suggestion_content.cpp b/Telegram/SourceFiles/dialogs/ui/dialogs_top_bar_suggestion_content.cpp index 6e53d71a0d..f536b3bb93 100644 --- a/Telegram/SourceFiles/dialogs/ui/dialogs_top_bar_suggestion_content.cpp +++ b/Telegram/SourceFiles/dialogs/ui/dialogs_top_bar_suggestion_content.cpp @@ -320,11 +320,7 @@ rpl::producer TopBarSuggestionContent::desiredHeightValue() const { const auto desiredHeight = lastTop + (lastLines * _contentTextSt.font->height) + bottomPadding; - const auto minHeight = desiredHeight; - return std::clamp( - desiredHeight, - minHeight, - st::sponsoredMessageBarMaxHeight); + return std::min(desiredHeight, st::sponsoredMessageBarMaxHeight); }); }