remove unused formatting in home screen

pull/1023/head
Ryan ZHAO 2 years ago
parent 87efc38a04
commit 99f80f3efc

@ -25,7 +25,9 @@ public enum MentionUtilities {
theme: .classicDark,
primaryColor: Theme.PrimaryColor.green,
attributes: [:]
).string
)
.string
.deformatted()
}
public static func highlightMentions(

@ -276,4 +276,8 @@ public extension String {
func formatted(baseFont: UIFont) -> NSAttributedString {
return NSAttributedString(stringWithHTMLTags: self, font: baseFont)
}
func deformatted() -> String {
return NSAttributedString(stringWithHTMLTags: self, font: .systemFont(ofSize: 14)).string
}
}

Loading…
Cancel
Save