mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
@@ -323,19 +323,19 @@ public class ChatMessageReplyInfoNode: ASDisplayNode {
|
||||
titleString = NSAttributedString(string: rawTitleString, font: titleFont, textColor: titleColor)
|
||||
}
|
||||
|
||||
//TODO:localize
|
||||
textString = NSAttributedString(string: replyForward.quote?.text ?? "Message")
|
||||
textString = NSAttributedString(string: replyForward.quote?.text ?? arguments.presentationData.strings.VoiceOver_ChatList_Message)
|
||||
if let media = replyForward.quote?.media {
|
||||
if let text = replyForward.quote?.text, !text.isEmpty {
|
||||
isMedia = false
|
||||
} else {
|
||||
if let contentKind = mediaContentKind(EngineMedia(media), message: nil, strings: arguments.strings, nameDisplayOrder: arguments.presentationData.nameDisplayOrder, dateTimeFormat: arguments.presentationData.dateTimeFormat, accountPeerId: arguments.context.account.peerId) {
|
||||
let (string, _) = stringForMediaKind(contentKind, strings: arguments.strings)
|
||||
textString = string
|
||||
} else {
|
||||
textString = NSAttributedString(string: "Message")
|
||||
textString = NSAttributedString(string: arguments.presentationData.strings.VoiceOver_ChatList_Message)
|
||||
}
|
||||
isMedia = true
|
||||
}
|
||||
isMedia = true
|
||||
} else {
|
||||
isMedia = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user