mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fixed caption for personal photo in media viewer when it's single photo.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user