mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-27 00:53:22 +00:00
Fix crash in reading saved peers.
This commit is contained in:
parent
3c0694280f
commit
1a69627102
@ -204,7 +204,7 @@ PeerData *readPeer(
|
||||
const auto loaded = (peerId == selfId)
|
||||
? session->user().get()
|
||||
: session->data().peerLoaded(peerId);
|
||||
const auto apply = (loaded->loadedStatus != PeerData::FullLoaded);
|
||||
const auto apply = !loaded || (loaded->loadedStatus != PeerData::FullLoaded);
|
||||
const auto result = loaded ? loaded : session->data().peer(peerId).get();
|
||||
if (apply) {
|
||||
result->loadedStatus = PeerData::FullLoaded;
|
||||
|
Loading…
Reference in New Issue
Block a user