From 2afa2cd9ab568b82708aaf18a7e8e02d3ed01919 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 2 Jan 2023 12:26:10 +0400 Subject: [PATCH] Fix scroll reset bug in topics on message removal. --- Telegram/SourceFiles/history/view/history_view_list_widget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/history/view/history_view_list_widget.cpp b/Telegram/SourceFiles/history/view/history_view_list_widget.cpp index 93bcb07bc..d20eec433 100644 --- a/Telegram/SourceFiles/history/view/history_view_list_widget.cpp +++ b/Telegram/SourceFiles/history/view/history_view_list_widget.cpp @@ -3749,6 +3749,8 @@ void ListWidget::viewReplaced(not_null was, Element *now) { } void ListWidget::itemRemoved(not_null item) { + saveScrollState(); + if (_reactionsItem.current() == item) { _reactionsItem = nullptr; }