diff --git a/Session/Utilities/MentionUtilities.swift b/Session/Utilities/MentionUtilities.swift index c93124f5d..233962939 100644 --- a/Session/Utilities/MentionUtilities.swift +++ b/Session/Utilities/MentionUtilities.swift @@ -25,7 +25,9 @@ public enum MentionUtilities { theme: .classicDark, primaryColor: Theme.PrimaryColor.green, attributes: [:] - ).string + ) + .string + .deformatted() } public static func highlightMentions( diff --git a/SessionUtilitiesKit/General/Localization.swift b/SessionUtilitiesKit/General/Localization.swift index d91a9fd4a..11ac9781c 100644 --- a/SessionUtilitiesKit/General/Localization.swift +++ b/SessionUtilitiesKit/General/Localization.swift @@ -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 + } }