Fix replies

This commit is contained in:
Ali
2023-10-20 01:19:35 +04:00
parent 9c5bf45249
commit 19bc67c9d3
2 changed files with 4 additions and 2 deletions

View File

@@ -266,7 +266,6 @@ public final class ReplyAccessoryPanelNode: AccessoryPanelNode {
} else {
let string = strongSelf.strings.Conversation_ReplyMessagePanelTitle(authorName).string
titleText = [.text(NSAttributedString(string: string, font: Font.medium(15.0), textColor: .white))]
strongSelf.textNode.attributedText = messageText
}
if strongSelf.messageId.peerId != strongSelf.chatPeerId {
@@ -285,6 +284,8 @@ public final class ReplyAccessoryPanelNode: AccessoryPanelNode {
}
}
strongSelf.textNode.attributedText = messageText
if let quote = strongSelf.quote {
let textColor = strongSelf.theme.chat.inputPanel.primaryTextColor
let quoteText = stringWithAppliedEntities(trimToLineCount(quote.text, lineCount: 1), entities: quote.entities, baseColor: textColor, linkColor: textColor, baseFont: textFont, linkFont: textFont, boldFont: textFont, italicFont: textFont, boldItalicFont: textFont, fixedFont: textFont, blockQuoteFont: textFont, underlineLinks: false, message: message)