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

Fix userpic removing.

Regression was introduced in 68009b6fba.

Fixes #4152.
This commit is contained in:
John Preston
2017-12-12 15:45:40 +04:00
parent 3c101b0a50
commit 05e3ddce0c
2 changed files with 19 additions and 6 deletions

View File

@@ -238,6 +238,11 @@ private:
std::unique_ptr<Ui::EmptyUserpic> createEmptyUserpic() const;
void refreshEmptyUserpic() const;
void setUserpicChecked(
PhotoId photoId,
const StorageImageLocation &location,
ImagePtr userpic);
static constexpr auto kUnknownPhotoId = PhotoId(0xFFFFFFFFFFFFFFFFULL);
ImagePtr _userpic;