Added ability to go to top of chats list by clicking on selected filter.

This commit is contained in:
23rd
2024-11-17 13:43:19 +03:00
parent 67bbdbfc70
commit db2e45c56e
2 changed files with 9 additions and 4 deletions
@@ -1328,6 +1328,7 @@ void Widget::toggleFiltersMenu(bool enabled) {
_chatFilters.get(),
&session(),
[this](FilterId id) {
_scroll->scrollToY(0);
if (controller()->activeChatsFilterCurrent() != id) {
controller()->setActiveChatsFilter(id);
}