mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix crash in unloaded userpic handling.
This commit is contained in:
@@ -241,6 +241,9 @@ bool PeerData::useEmptyUserpic() const {
|
||||
|
||||
StorageKey PeerData::userpicUniqueKey() const {
|
||||
if (useEmptyUserpic()) {
|
||||
if (!_userpicEmpty) {
|
||||
refreshEmptyUserpic();
|
||||
}
|
||||
return _userpicEmpty->uniqueKey();
|
||||
}
|
||||
return storageKey(_userpicLocation);
|
||||
|
||||
Reference in New Issue
Block a user