2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 15:35:51 +00:00

Make filtered lists independent from folders.

This commit is contained in:
John Preston
2020-03-09 15:17:56 +04:00
parent c305246d21
commit ca3419ef24
17 changed files with 98 additions and 56 deletions

View File

@@ -440,6 +440,7 @@ void InnerWidget::paintEvent(QPaintEvent *e) {
Layout::RowPainter::paint(
p,
row,
_filterId,
fullWidth,
isActive,
isSelected,
@@ -565,6 +566,7 @@ void InnerWidget::paintEvent(QPaintEvent *e) {
Layout::RowPainter::paint(
p,
_filterResults[from],
_filterId,
fullWidth,
active,
selected,
@@ -1680,7 +1682,9 @@ void InnerWidget::updateSelectedRow(Key key) {
}
not_null<IndexedList*> InnerWidget::shownDialogs() const {
return session().data().chatsList(_openedFolder)->indexed(_filterId);
return _filterId
? session().data().chatsFilters().chatsList(_filterId)->indexed()
: session().data().chatsList(_openedFolder)->indexed();
}
void InnerWidget::leaveEventHook(QEvent *e) {