New profile fixed top bar now is peer observer.

Multiple showAnimated() calls for SectionWidget are now allowed.
This commit is contained in:
John Preston
2016-05-27 18:45:35 +03:00
parent 2c5c25962c
commit a06a989f97
9 changed files with 112 additions and 26 deletions
+5 -1
View File
@@ -198,6 +198,10 @@ const Text &BotCommand::descriptionText() const {
return _descriptionText;
}
bool UserData::canShareThisContact() const {
return canShareThisContactFast() || !App::phoneFromSharedContact(peerToUser(id)).isEmpty();
}
void UserData::setPhoto(const MTPUserProfilePhoto &p) { // see Local::readPeer as well
PhotoId newPhotoId = photoId;
ImagePtr newPhoto = _userpic;
@@ -490,7 +494,7 @@ void ChannelData::flagsUpdated() {
}
} else if (mgInfo) {
delete mgInfo;
mgInfo = 0;
mgInfo = nullptr;
}
}