Added phrase for public photo to short info box.

This commit is contained in:
23rd 2023-07-24 22:10:21 +03:00
parent fce8bc6201
commit 16117e56bb
2 changed files with 7 additions and 2 deletions

View File

@ -1144,6 +1144,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_profile_copy_phone" = "Copy Phone Number";
"lng_profile_copy_fullname" = "Copy Name";
"lng_profile_photo_by_you" = "photo set by you";
"lng_profile_public_photo" = "public photo";
"lng_via_link_group_one" = "**{user}** restricts adding them to groups.\nYou can send them an invite link as message instead.";
"lng_via_link_group_many#one" = "**{count} user** restricts adding them to groups.\nYou can send them an invite link as message instead.";

View File

@ -335,10 +335,14 @@ bool ProcessCurrent(
: state->photoView
? state->photoView->owner().get()
: nullptr;
state->current.additionalStatus = ((state->photoId == userpicPhotoId)
&& peer->isUser()
state->current.additionalStatus = (!peer->isUser())
? QString()
: ((state->photoId == userpicPhotoId)
&& peer->asUser()->hasPersonalPhoto())
? tr::lng_profile_photo_by_you(tr::now)
: ((state->current.index == (state->current.count - 1))
&& SyncUserFallbackPhotoViewer(peer->asUser()))
? tr::lng_profile_public_photo(tr::now)
: QString();
state->waitingLoad = false;
if (!changedPhotoId