fixed warnings, version 0.8.47.dev

This commit is contained in:
John Preston 2015-08-07 15:20:19 +03:00
parent 5dd8eab606
commit 9792d5df76
1 changed files with 2 additions and 2 deletions

View File

@ -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) {