mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
fixed photo label for groups and channels
This commit is contained in:
@@ -1946,10 +1946,10 @@ void MediaView::updateHeader() {
|
|||||||
_headerText = _doc->name.isEmpty() ? lang(lng_mediaview_doc_image) : _doc->name;
|
_headerText = _doc->name.isEmpty() ? lang(lng_mediaview_doc_image) : _doc->name;
|
||||||
} else if (_user) {
|
} else if (_user) {
|
||||||
_headerText = lang(lng_mediaview_profile_photo);
|
_headerText = lang(lng_mediaview_profile_photo);
|
||||||
} else if (_channel) {
|
} else if (_channel || (_peer && _peer->isChannel())) {
|
||||||
_headerText = lang(lng_mediaview_group_photo);
|
|
||||||
} else if (_peer) {
|
|
||||||
_headerText = lang(lng_mediaview_channel_photo);
|
_headerText = lang(lng_mediaview_channel_photo);
|
||||||
|
} else if (_peer) {
|
||||||
|
_headerText = lang(lng_mediaview_group_photo);
|
||||||
} else {
|
} else {
|
||||||
_headerText = lang(lng_mediaview_single_photo);
|
_headerText = lang(lng_mediaview_single_photo);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user