Various Fixes

This commit is contained in:
Ilya Laktyushin 2021-11-19 20:44:16 +04:00
parent 64ed8b5ee4
commit 36c8f1738c

View File

@ -297,7 +297,7 @@ private final class AuthTransferScanScreenNode: ViewControllerTracingNode, UIScr
let boldFont = Font.bold(17.0)
var text = presentationData.strings.AuthSessions_AddDevice_ScanInstallInfo
text = text.replacingOccurrences(of: " [", with: " [").replacingOccurrences(of: "]() ", with: "]() ")
text = text.replacingOccurrences(of: " [", with: " [").replacingOccurrences(of: ") ", with: ") ")
let attributedText = NSMutableAttributedString(attributedString: parseMarkdownIntoAttributedString(text, attributes: MarkdownAttributes(body: MarkdownAttributeSet(font: textFont, textColor: .white), bold: MarkdownAttributeSet(font: boldFont, textColor: .white), link: MarkdownAttributeSet(font: boldFont, textColor: .white), linkAttribute: { contents in
return (TelegramTextAttributes.URL, contents)