mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +02:00
Fix incorrect naming userpic as public photo.
This commit is contained in:
parent
a3ba99c682
commit
a5f44b3ed6
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue