mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Pass correct FileOrigin for userpics.
This commit is contained in:
@@ -183,10 +183,13 @@ public:
|
||||
PhotoId userpicPhotoId() const {
|
||||
return userpicPhotoUnknown() ? 0 : _userpicPhotoId;
|
||||
}
|
||||
Data::FileOrigin userpicOrigin() const {
|
||||
return Data::FileOrigin(Data::FileOriginPeerPhoto(id));
|
||||
}
|
||||
Data::FileOrigin userpicPhotoOrigin() const {
|
||||
return (isUser() && userpicPhotoId())
|
||||
? Data::FileOriginUserPhoto(bareId(), userpicPhotoId())
|
||||
: Data::FileOrigin(Data::FileOriginPeerPhoto(id));
|
||||
: Data::FileOrigin();
|
||||
}
|
||||
|
||||
int nameVersion = 1;
|
||||
|
Reference in New Issue
Block a user