mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-04 08:25:38 +00:00
Fix userpics view cache invalidation.
This commit is contained in:
@@ -276,10 +276,8 @@ QImage *PeerData::userpicCloudImage(Ui::PeerUserpicView &view) const {
|
|||||||
_userpic.load(&session(), userpicOrigin());
|
_userpic.load(&session(), userpicOrigin());
|
||||||
} else {
|
} else {
|
||||||
view.cloud = nullptr;
|
view.cloud = nullptr;
|
||||||
if (view.empty.null()) {
|
|
||||||
view.paletteVersion = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
view.cached = QImage();
|
||||||
}
|
}
|
||||||
if (const auto image = view.cloud.get(); image && !image->isNull()) {
|
if (const auto image = view.cloud.get(); image && !image->isNull()) {
|
||||||
_userpicEmpty = nullptr;
|
_userpicEmpty = nullptr;
|
||||||
|
Reference in New Issue
Block a user