Fix scroll reset bug in topics on message removal.

This commit is contained in:
John Preston 2023-01-02 12:26:10 +04:00
parent 442d0da5c1
commit 2afa2cd9ab

View file

@ -3749,6 +3749,8 @@ void ListWidget::viewReplaced(not_null<const Element*> was, Element *now) {
}
void ListWidget::itemRemoved(not_null<const HistoryItem*> item) {
saveScrollState();
if (_reactionsItem.current() == item) {
_reactionsItem = nullptr;
}