2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

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

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