Don't apply private userpic 'min' updates.
This commit is contained in:
parent
61d0d240aa
commit
056cab6268
1 changed files with 6 additions and 4 deletions
|
@ -488,10 +488,12 @@ not_null<UserData*> Session::processUser(const MTPUser &data) {
|
|||
: result->nameOrPhone;
|
||||
|
||||
result->setName(fname, lname, pname, uname);
|
||||
if (const auto photo = data.vphoto()) {
|
||||
result->setPhoto(*photo);
|
||||
} else {
|
||||
result->setPhoto(MTP_userProfilePhotoEmpty());
|
||||
if (!minimal || data.is_apply_min_photo()) {
|
||||
if (const auto photo = data.vphoto()) {
|
||||
result->setPhoto(*photo);
|
||||
} else {
|
||||
result->setPhoto(MTP_userProfilePhotoEmpty());
|
||||
}
|
||||
}
|
||||
if (const auto accessHash = data.vaccess_hash()) {
|
||||
result->setAccessHash(accessHash->v);
|
||||
|
|
Loading…
Reference in a new issue