mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 15:47:11 +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 {
|
||||
if (useEmptyUserpic()) {
|
||||
if (!_userpicEmpty) {
|
||||
refreshEmptyUserpic();
|
||||
}
|
||||
return _userpicEmpty->uniqueKey();
|
||||
}
|
||||
return storageKey(_userpicLocation);
|
||||
|
|
Loading…
Add table
Reference in a new issue