Ignore filter switching in separate window archive.

This commit is contained in:
John Preston 2024-07-01 09:21:18 +04:00
parent 9ef74c510c
commit 179e81478e

View file

@ -3690,6 +3690,9 @@ bool InnerWidget::chooseCollapsedRow(Qt::KeyboardModifiers modifiers) {
}
void InnerWidget::switchToFilter(FilterId filterId) {
if (_controller->windowId().type != Window::SeparateType::Primary) {
return;
}
const auto &list = session().data().chatsFilters().list();
const auto filterIt = filterId
? ranges::find(list, filterId, &Data::ChatFilter::id)