mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +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());
|
||||
} else {
|
||||
view.cloud = nullptr;
|
||||
if (view.empty.null()) {
|
||||
view.paletteVersion = 0;
|
||||
}
|
||||
}
|
||||
view.cached = QImage();
|
||||
}
|
||||
if (const auto image = view.cloud.get(); image && !image->isNull()) {
|
||||
_userpicEmpty = nullptr;
|
||||
|
|
Loading…
Add table
Reference in a new issue