Various Improvements

This commit is contained in:
Ilya Laktyushin
2021-12-23 16:53:22 +04:00
parent 7c7626f6cc
commit 7d218f4812
18 changed files with 804 additions and 2916 deletions

View File

@@ -105,7 +105,11 @@ class ChatMessageReplyInfoNode: ASDisplayNode {
return false
}
}
messageText = stringWithAppliedEntities(message.text, entities: entities, baseColor: textColor, linkColor: textColor, baseFont: textFont, linkFont: textFont, boldFont: textFont, italicFont: textFont, boldItalicFont: textFont, fixedFont: textFont, blockQuoteFont: textFont, underlineLinks: false)
if entities.count > 0 {
messageText = stringWithAppliedEntities(message.text, entities: entities, baseColor: textColor, linkColor: textColor, baseFont: textFont, linkFont: textFont, boldFont: textFont, italicFont: textFont, boldItalicFont: textFont, fixedFont: textFont, blockQuoteFont: textFont, underlineLinks: false)
} else {
messageText = NSAttributedString(string: textString, font: textFont, textColor: textColor)
}
} else {
messageText = NSAttributedString(string: textString, font: textFont, textColor: textColor)
}