mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Added phrase for public photo to short info box.
This commit is contained in:
parent
fce8bc6201
commit
16117e56bb
2 changed files with 7 additions and 2 deletions
|
@ -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.";
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue