2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Use Data::CloudImage for userpics.

This commit is contained in:
John Preston
2020-05-28 18:32:10 +04:00
parent 249f7813c1
commit f066e0f05a
55 changed files with 748 additions and 284 deletions

View File

@@ -33,6 +33,10 @@ namespace Notify {
struct PeerUpdate;
} // namespace Notify
namespace Data {
class CloudImageView;
} // namespace Data
namespace Dialogs {
class Row;
@@ -283,6 +287,7 @@ private:
void paintSearchInPeer(
Painter &p,
not_null<PeerData*> peer,
std::shared_ptr<Data::CloudImageView> &userpic,
int top,
const Ui::Text::String &text) const;
void paintSearchInSaved(
@@ -394,6 +399,8 @@ private:
Key _searchInChat;
History *_searchInMigrated = nullptr;
UserData *_searchFromUser = nullptr;
mutable std::shared_ptr<Data::CloudImageView> _searchInChatUserpic;
mutable std::shared_ptr<Data::CloudImageView> _searchFromUserUserpic;
Ui::Text::String _searchInChatText;
Ui::Text::String _searchFromUserText;
RowDescriptor _menuRow;