mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
highlight Note to Self
This commit is contained in:
parent
5c112064da
commit
af7dd3e82f
|
@ -226,6 +226,10 @@ final class ConversationCell : UITableViewCell {
|
||||||
}
|
}
|
||||||
|
|
||||||
private func getHighlightedSnippet(snippet: String, searchText: String) -> NSMutableAttributedString {
|
private func getHighlightedSnippet(snippet: String, searchText: String) -> NSMutableAttributedString {
|
||||||
|
guard snippet != NSLocalizedString("NOTE_TO_SELF", comment: "") else {
|
||||||
|
return NSMutableAttributedString(string: snippet, attributes: [.foregroundColor:Colors.text])
|
||||||
|
}
|
||||||
|
|
||||||
let result = NSMutableAttributedString(string: snippet, attributes: [.foregroundColor:UIColor.gray])
|
let result = NSMutableAttributedString(string: snippet, attributes: [.foregroundColor:UIColor.gray])
|
||||||
let normalizedSnippet = snippet.lowercased() as NSString
|
let normalizedSnippet = snippet.lowercased() as NSString
|
||||||
let normalizedSearchText = searchText.lowercased()
|
let normalizedSearchText = searchText.lowercased()
|
||||||
|
|
Loading…
Reference in a new issue