Skip to content

Commit

Permalink
fixed warnings, version 0.8.49.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Aug 12, 2015
1 parent 6a41d30 commit 82dc07e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Telegram/SourceFiles/profilewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ void ProfileInner::paintEvent(QPaintEvent *e) {
top += st::profileHeaderSkip;

top += _searchInPeer.height() + st::setLittleSkip + _clearHistory.height() + st::setLittleSkip + _deleteConversation.height();
if (_peerUser && _peerUser->id != MTP::authedId()) top += st::setSectionSkip + _blockUser.height();
if (_peerUser && App::userFromPeer(_peerUser->id) != MTP::authedId()) top += st::setSectionSkip + _blockUser.height();

// participants
if (_peerChat && (_peerChat->count > 0 || !_participants.isEmpty())) {
Expand Down Expand Up @@ -947,7 +947,7 @@ void ProfileInner::resizeEvent(QResizeEvent *e) {
_searchInPeer.move(_left, top); top += _searchInPeer.height() + st::setLittleSkip;
_clearHistory.move(_left, top); top += _clearHistory.height() + st::setLittleSkip;
_deleteConversation.move(_left, top); top += _deleteConversation.height();
if (_peerUser && _peerUser->id != MTP::authedId()) {
if (_peerUser && App::userFromPeer(_peerUser->id) != MTP::authedId()) {
top += st::setSectionSkip;
_blockUser.move(_left, top); top += _blockUser.height();
}
Expand Down Expand Up @@ -1105,7 +1105,7 @@ void ProfileInner::showAll() {
_inviteToGroup.hide();
}
_clearHistory.show();
if (_peerUser->id != MTP::authedId()) {
if (App::userFromPeer(_peerUser->id) != MTP::authedId()) {
_blockUser.show();
} else {
_blockUser.hide();
Expand Down Expand Up @@ -1154,7 +1154,7 @@ void ProfileInner::showAll() {
reorderParticipants();
int32 h;
if (_peerUser) {
if (_peerUser->id == MTP::authedId()) {
if (App::userFromPeer(_peerUser->id) == MTP::authedId()) {
h = _deleteConversation.y() + _deleteConversation.height() + st::profileHeaderSkip;
} else {
h = _blockUser.y() + _blockUser.height() + st::profileHeaderSkip;
Expand Down

0 comments on commit 82dc07e

Please sign in to comment.