Show "Photo set by you" in profile photos list.

This commit is contained in:
John Preston 2023-01-09 09:56:36 +04:00
parent 36eca970f2
commit 876cdcf26a
2 changed files with 6 additions and 0 deletions

View File

@ -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";

View 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,