|
|
@ -230,6 +230,13 @@ final class ConversationCell : UITableViewCell {
|
|
|
|
let result = NSMutableAttributedString()
|
|
|
|
let result = NSMutableAttributedString()
|
|
|
|
if threadViewModel.isMuted {
|
|
|
|
if threadViewModel.isMuted {
|
|
|
|
result.append(NSAttributedString(string: "\u{e067} ", attributes: [ .font : UIFont.ows_elegantIconsFont(10), .foregroundColor : Colors.unimportant ]))
|
|
|
|
result.append(NSAttributedString(string: "\u{e067} ", attributes: [ .font : UIFont.ows_elegantIconsFont(10), .foregroundColor : Colors.unimportant ]))
|
|
|
|
|
|
|
|
} else if threadViewModel.isOnlyNotifyMentions {
|
|
|
|
|
|
|
|
let imageAttachment = NSTextAttachment()
|
|
|
|
|
|
|
|
imageAttachment.image = UIImage(named: "NotifyMentions.png")?.asTintedImage(color: Colors.unimportant)
|
|
|
|
|
|
|
|
imageAttachment.bounds = CGRect(x: 0, y: -2, width: Values.smallFontSize, height: Values.smallFontSize)
|
|
|
|
|
|
|
|
let imageString = NSAttributedString(attachment: imageAttachment)
|
|
|
|
|
|
|
|
result.append(imageString)
|
|
|
|
|
|
|
|
result.append(NSAttributedString(string: " ", attributes: [ .font : UIFont.ows_elegantIconsFont(10), .foregroundColor : Colors.unimportant ]))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if let rawSnippet = threadViewModel.lastMessageText {
|
|
|
|
if let rawSnippet = threadViewModel.lastMessageText {
|
|
|
|
let snippet = MentionUtilities.highlightMentions(in: rawSnippet, threadID: threadViewModel.threadRecord.uniqueId!)
|
|
|
|
let snippet = MentionUtilities.highlightMentions(in: rawSnippet, threadID: threadViewModel.threadRecord.uniqueId!)
|
|
|
|