mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 07:33:52 +02:00
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->nameOrPhone;
|
||||||
|
|
||||||
result->setName(fname, lname, pname, uname);
|
result->setName(fname, lname, pname, uname);
|
||||||
if (const auto photo = data.vphoto()) {
|
if (!minimal || data.is_apply_min_photo()) {
|
||||||
result->setPhoto(*photo);
|
if (const auto photo = data.vphoto()) {
|
||||||
} else {
|
result->setPhoto(*photo);
|
||||||
result->setPhoto(MTP_userProfilePhotoEmpty());
|
} else {
|
||||||
|
result->setPhoto(MTP_userProfilePhotoEmpty());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (const auto accessHash = data.vaccess_hash()) {
|
if (const auto accessHash = data.vaccess_hash()) {
|
||||||
result->setAccessHash(accessHash->v);
|
result->setAccessHash(accessHash->v);
|
||||||
|
|
Loading…
Add table
Reference in a new issue