From b978bc4876539ee3cb7ed86f4110d14bd77f0f3c Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Tue, 19 Aug 2025 12:34:46 +0300 Subject: [PATCH] Added ability to bottom scroll in HistoryView::Chat section with submit. Fixed #29662. --- .../SourceFiles/history/view/history_view_chat_section.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Telegram/SourceFiles/history/view/history_view_chat_section.cpp b/Telegram/SourceFiles/history/view/history_view_chat_section.cpp index 7d96d7e0f9..5fecbc4a56 100644 --- a/Telegram/SourceFiles/history/view/history_view_chat_section.cpp +++ b/Telegram/SourceFiles/history/view/history_view_chat_section.cpp @@ -810,6 +810,11 @@ void ChatWidget::setupComposeControls() { send(options); }, lifetime()); + _composeControls->scrollToMaxRequests( + ) | rpl::start_with_next([=] { + listScrollTo(_scroll->scrollTopMax()); + }, lifetime()); + _composeControls->sendVoiceRequests( ) | rpl::start_with_next([=](const ComposeControls::VoiceToSend &data) { sendVoice(data);