mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 05:07:10 +02:00
Fixed caption for personal photo in media viewer when it's single photo.
This commit is contained in:
parent
75e454f3fd
commit
75714cc358
1 changed files with 7 additions and 1 deletions
|
@ -6624,7 +6624,13 @@ void OverlayWidget::updateHeader() {
|
|||
} else if (_message) {
|
||||
_headerText = tr::lng_mediaview_single_photo(tr::now);
|
||||
} else if (_user) {
|
||||
_headerText = tr::lng_mediaview_profile_photo(tr::now);
|
||||
if (_user->hasPersonalPhoto()
|
||||
&& _photo
|
||||
&& (_photo->id == _user->userpicPhotoId())) {
|
||||
_headerText = tr::lng_mediaview_profile_photo_by_you(tr::now);
|
||||
} else {
|
||||
_headerText = tr::lng_mediaview_profile_photo(tr::now);
|
||||
}
|
||||
} else if ((_history && _history->peer->isBroadcast())
|
||||
|| (_peer && _peer->isChannel() && !_peer->isMegagroup())) {
|
||||
_headerText = tr::lng_mediaview_channel_photo(tr::now);
|
||||
|
|
Loading…
Add table
Reference in a new issue