mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Attachment menu improvements
This commit is contained in:
@@ -53,7 +53,9 @@ private class MediaHeaderItemNode: ASDisplayNode {
|
||||
let titleText: String = author.flatMap(EnginePeer.init)?.displayTitle(strings: strings, displayOrder: nameDisplayOrder) ?? ""
|
||||
let subtitleText: String
|
||||
if let peer = peer {
|
||||
if peer is TelegramGroup || peer is TelegramChannel {
|
||||
if let peer = peer as? TelegramChannel, case .broadcast = peer.info {
|
||||
subtitleText = strings.MusicPlayer_VoiceNote
|
||||
} else if peer is TelegramGroup || peer is TelegramChannel {
|
||||
subtitleText = EnginePeer(peer).displayTitle(strings: strings, displayOrder: nameDisplayOrder)
|
||||
} else {
|
||||
subtitleText = strings.MusicPlayer_VoiceNote
|
||||
|
||||
Reference in New Issue
Block a user