mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix userpics view cache invalidation.
This commit is contained in:
parent
74ecd44294
commit
f86afc9539
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue