mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-03 14:46:56 +02:00
Render links and mentions as regular text in thread list
This commit is contained in:
@@ -29,4 +29,11 @@ public extension NSAttributedString {
|
||||
|
||||
return unquotedSubstrings.joined(separator: " ") as NSString
|
||||
}
|
||||
|
||||
/// Returns a new attributed string by removing all links from the receiver.
|
||||
@objc var byRemovingLinks: NSAttributedString {
|
||||
let result = NSMutableAttributedString(attributedString: self)
|
||||
result.removeAttribute(.link, range: NSRange(location: 0, length: length))
|
||||
return result
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user