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

@@ -18,6 +18,7 @@ class Session;
namespace Data {
class Session;
class Folder;
class CloudImageView;
} // namespace Data
namespace Dialogs {
@@ -158,16 +159,18 @@ public:
virtual void loadUserpic() = 0;
virtual void paintUserpic(
Painter &p,
std::shared_ptr<Data::CloudImageView> &view,
int x,
int y,
int size) const = 0;
void paintUserpicLeft(
Painter &p,
std::shared_ptr<Data::CloudImageView> &view,
int x,
int y,
int w,
int size) const {
paintUserpic(p, rtl() ? (w - x - size) : x, y, size);
paintUserpic(p, view, rtl() ? (w - x - size) : x, y, size);
}
TimeId chatListTimeId() const {