2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +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

@@ -220,8 +220,10 @@ Row::Row(Key key, int pos) : _id(key), _pos(pos) {
}
}
uint64 Row::sortKey() const {
return _id.entry()->sortKeyInChatList();
uint64 Row::sortKey(SortMode mode) const {
return (mode == SortMode::Complex)
? _id.entry()->sortKeyInChatList()
: _id.entry()->sortKeyByDate();
}
void Row::validateListEntryCache() const {