Fix incorrect naming userpic as public photo.

This commit is contained in:
John Preston 2025-03-31 22:14:40 +05:00
parent a3ba99c682
commit a5f44b3ed6
2 changed files with 3 additions and 2 deletions

View file

@ -361,7 +361,7 @@ bool ProcessCurrent(
&& peer->asUser()->hasPersonalPhoto())
? tr::lng_profile_photo_by_you(tr::now)
: ((state->current.index == (state->current.count - 1))
&& SyncUserFallbackPhotoViewer(peer->asUser()))
&& SyncUserFallbackPhotoViewer(peer->asUser()) == state->photoId)
? tr::lng_profile_public_photo(tr::now)
: QString();
state->waitingLoad = false;

View file

@ -6677,7 +6677,8 @@ void OverlayWidget::updateHeader() {
} else {
if (_user
&& (index == count - 1)
&& SyncUserFallbackPhotoViewer(_user)) {
&& _photo
&& SyncUserFallbackPhotoViewer(_user) == _photo->id) {
_headerText = tr::lng_mediaview_profile_public_photo(tr::now);
} else if (_user
&& _user->hasPersonalPhoto()