highlight `Note to Self`

pull/555/head
Ryan Zhao 2 years ago
parent 5c112064da
commit af7dd3e82f

@ -226,6 +226,10 @@ final class ConversationCell : UITableViewCell {
}
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 normalizedSnippet = snippet.lowercased() as NSString
let normalizedSearchText = searchText.lowercased()

Loading…
Cancel
Save