2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Support pinned locally in filters.

This commit is contained in:
John Preston
2020-03-17 17:04:30 +04:00
parent 483d4e5a4e
commit e27a8fe058
30 changed files with 409 additions and 155 deletions

View File

@@ -16,7 +16,7 @@ enum class SortMode;
class List final {
public:
List(SortMode sortMode);
List(SortMode sortMode, FilterId filterId = 0);
List(const List &other) = delete;
List &operator=(const List &other) = delete;
List(List &&other) = default;
@@ -78,6 +78,7 @@ private:
std::vector<not_null<Row*>>::iterator last);
SortMode _sortMode = SortMode();
FilterId _filterId = 0;
std::vector<not_null<Row*>> _rows;
std::map<Key, std::unique_ptr<Row>> _rowByKey;