mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix crash in unloaded userpic handling.
This commit is contained in:
parent
e992702783
commit
147079ce2a
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue