mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 13:47:47 +00:00
Fix crash in unloaded userpic handling.
This commit is contained in:
parent
e992702783
commit
147079ce2a
@ -241,6 +241,9 @@ bool PeerData::useEmptyUserpic() const {
|
|||||||
|
|
||||||
StorageKey PeerData::userpicUniqueKey() const {
|
StorageKey PeerData::userpicUniqueKey() const {
|
||||||
if (useEmptyUserpic()) {
|
if (useEmptyUserpic()) {
|
||||||
|
if (!_userpicEmpty) {
|
||||||
|
refreshEmptyUserpic();
|
||||||
|
}
|
||||||
return _userpicEmpty->uniqueKey();
|
return _userpicEmpty->uniqueKey();
|
||||||
}
|
}
|
||||||
return storageKey(_userpicLocation);
|
return storageKey(_userpicLocation);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user