mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Scroll to top of the filter on second click.
This commit is contained in:
@@ -2568,6 +2568,7 @@ void InnerWidget::switchToFilter(FilterId filterId) {
|
||||
filterId = 0;
|
||||
}
|
||||
if (_filterId == filterId) {
|
||||
emit mustScrollTo(0, 0);
|
||||
return;
|
||||
}
|
||||
if (_openedFolder) {
|
||||
|
@@ -781,7 +781,7 @@ FilterId SessionController::activeChatsFilterCurrent() const {
|
||||
}
|
||||
|
||||
void SessionController::setActiveChatsFilter(FilterId id) {
|
||||
_activeChatsFilter = id;
|
||||
_activeChatsFilter.force_assign(id);
|
||||
if (id) {
|
||||
closeFolder();
|
||||
}
|
||||
|
Submodule Telegram/lib_rpl updated: 2888aabf28...9f3bb0e2a9
Reference in New Issue
Block a user