diff --git a/Telegram/SourceFiles/chat_helpers/message_field.cpp b/Telegram/SourceFiles/chat_helpers/message_field.cpp index c5c04a43c..648c5c98c 100644 --- a/Telegram/SourceFiles/chat_helpers/message_field.cpp +++ b/Telegram/SourceFiles/chat_helpers/message_field.cpp @@ -505,7 +505,11 @@ void InitMessageFieldFade( }, topFade->lifetime()); topFade->show(); - bottomFade->show(); + bottomFade->showOn( + field->scrollTop().value( + ) | rpl::map([field, descent = field->st().font->descent](int scroll) { + return (scroll + descent) < field->scrollTopMax(); + }) | rpl::distinct_until_changed()); } InlineBotQuery ParseInlineBotQuery(