Fix userpics view cache invalidation.

This commit is contained in:
John Preston 2022-12-06 22:51:14 +04:00
parent 74ecd44294
commit f86afc9539

View file

@ -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;