From 99f80f3efca57c0a4d05be44897a2a45dc286335 Mon Sep 17 00:00:00 2001 From: Ryan ZHAO <> Date: Mon, 15 Apr 2024 16:24:53 +1000 Subject: [PATCH] remove unused formatting in home screen --- Session/Utilities/MentionUtilities.swift | 4 +++- SessionUtilitiesKit/General/Localization.swift | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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 + } }