From 9792d5df764318481fa6eb3df9d3d7d240c80f63 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 7 Aug 2015 15:20:19 +0300 Subject: [PATCH] fixed warnings, version 0.8.47.dev --- Telegram/SourceFiles/localstorage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/localstorage.cpp b/Telegram/SourceFiles/localstorage.cpp index b3036fce4..4f6103da4 100644 --- a/Telegram/SourceFiles/localstorage.cpp +++ b/Telegram/SourceFiles/localstorage.cpp @@ -2797,7 +2797,7 @@ namespace Local { qint32 onlineTill, contact, botInfoVersion; from.stream >> first >> last >> phone >> username >> access >> onlineTill >> contact >> botInfoVersion; - bool showPhone = !isServiceUser(user->id) && (user->id != MTP::authedId()) && (contact <= 0); + bool showPhone = !isServiceUser(user->id) && (App::userFromPeer(user->id) != MTP::authedId()) && (contact <= 0); QString pname = (showPhone && !phone.isEmpty()) ? App::formatPhone(phone) : QString(); user->setName(first, last, pname, username); @@ -2807,7 +2807,7 @@ namespace Local { user->contact = contact; user->setBotInfoVersion(botInfoVersion); - if (user->id == MTP::authedId()) { + if (App::userFromPeer(user->id) == MTP::authedId()) { user->input = MTP_inputPeerSelf(); user->inputUser = MTP_inputUserSelf(); } else if (user->contact > 0 || !user->access) {