mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
Enable / disable side bar based on filters.
This commit is contained in:
@@ -2546,11 +2546,11 @@ bool InnerWidget::chooseCollapsedRow() {
|
||||
|
||||
void InnerWidget::switchToFilter(FilterId filterId) {
|
||||
clearSelection();
|
||||
if (!Global::DialogsFiltersEnabled()
|
||||
|| !ranges::contains(
|
||||
session().data().chatsFilters().list(),
|
||||
filterId,
|
||||
&Data::ChatFilter::id)) {
|
||||
const auto found = ranges::contains(
|
||||
session().data().chatsFilters().list(),
|
||||
filterId,
|
||||
&Data::ChatFilter::id);
|
||||
if (!found) {
|
||||
filterId = 0;
|
||||
}
|
||||
stopReorderPinned();
|
||||
|
Reference in New Issue
Block a user