From b353af00c9bfd1d3c7e8b24fc9e9cbfb3a432a04 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 29 Mar 2019 19:22:56 +0400 Subject: [PATCH] Fix crash in login. --- Telegram/SourceFiles/data/data_peer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/data/data_peer.cpp b/Telegram/SourceFiles/data/data_peer.cpp index f6f1c1d75..84deac793 100644 --- a/Telegram/SourceFiles/data/data_peer.cpp +++ b/Telegram/SourceFiles/data/data_peer.cpp @@ -318,7 +318,7 @@ void PeerData::updateUserpic( return StorageImageLocation( StorageFileLocation( dcId, - session().userId(), + isSelf() ? peerToUser(id) : 0, MTP_inputPeerPhotoFileLocation( MTP_flags(0), input,