2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Support feeds search display in dialogs list.

This commit is contained in:
John Preston
2018-02-14 22:38:01 +03:00
parent 98fb874b29
commit 0f775e1e66
16 changed files with 393 additions and 201 deletions

View File

@@ -81,10 +81,10 @@ private:
class FakeRow : public RippleRow {
public:
FakeRow(PeerData *searchInPeer, not_null<HistoryItem*> item);
FakeRow(Key searchInChat, not_null<HistoryItem*> item);
PeerData *searchInPeer() const {
return _searchInPeer;
Key searchInChat() const {
return _searchInChat;
}
not_null<HistoryItem*> item() const {
return _item;
@@ -93,7 +93,7 @@ public:
private:
friend class Layout::RowPainter;
PeerData *_searchInPeer = nullptr;
Key _searchInChat;
not_null<HistoryItem*> _item;
mutable const HistoryItem *_cacheFor = nullptr;
mutable Text _cache;