mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Ignore filter switching in separate window archive.
This commit is contained in:
parent
9ef74c510c
commit
179e81478e
1 changed files with 3 additions and 0 deletions
|
@ -3690,6 +3690,9 @@ bool InnerWidget::chooseCollapsedRow(Qt::KeyboardModifiers modifiers) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void InnerWidget::switchToFilter(FilterId filterId) {
|
void InnerWidget::switchToFilter(FilterId filterId) {
|
||||||
|
if (_controller->windowId().type != Window::SeparateType::Primary) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const auto &list = session().data().chatsFilters().list();
|
const auto &list = session().data().chatsFilters().list();
|
||||||
const auto filterIt = filterId
|
const auto filterIt = filterId
|
||||||
? ranges::find(list, filterId, &Data::ChatFilter::id)
|
? ranges::find(list, filterId, &Data::ChatFilter::id)
|
||||||
|
|
Loading…
Add table
Reference in a new issue