mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Show "Photo set by you" in profile photos list.
This commit is contained in:
parent
36eca970f2
commit
876cdcf26a
2 changed files with 6 additions and 0 deletions
Telegram
|
@ -2499,6 +2499,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||
"lng_mediaview_channel_photo" = "Channel Photo";
|
||||
"lng_mediaview_profile_photo" = "Profile Photo";
|
||||
"lng_mediaview_profile_public_photo" = "Public Photo";
|
||||
"lng_mediaview_profile_photo_by_you" = "Photo set by you";
|
||||
"lng_mediaview_file_n_of_amount" = "{file} {n} of {amount}";
|
||||
"lng_mediaview_n_of_amount" = "Photo {n} of {amount}";
|
||||
"lng_mediaview_doc_image" = "File";
|
||||
|
|
|
@ -4950,6 +4950,11 @@ void OverlayWidget::updateHeader() {
|
|||
&& (index == count - 1)
|
||||
&& SyncUserFallbackPhotoViewer(_user)) {
|
||||
_headerText = tr::lng_mediaview_profile_public_photo(tr::now);
|
||||
} else if (_user
|
||||
&& _user->hasPersonalPhoto()
|
||||
&& _photo
|
||||
&& (_photo->id == _user->userpicPhotoId())) {
|
||||
_headerText = tr::lng_mediaview_profile_photo_by_you(tr::now);
|
||||
} else {
|
||||
_headerText = tr::lng_mediaview_n_of_amount(
|
||||
tr::now,
|
||||
|
|
Loading…
Add table
Reference in a new issue