fix muted label not disappear after the end of the set period

pull/246/head
Ryan ZHAO 5 years ago
parent caaf396010
commit 74a49ab46d

@ -167,7 +167,7 @@ final class ConversationTitleView : UIView {
case .messageFailed: self.subtitleLabel.text = NSLocalizedString("Message failed to send", comment: "")
case nil:
let subtitle = NSMutableAttributedString()
if let muteEndDate = self.thread.mutedUntilDate {
if let muteEndDate = self.thread.mutedUntilDate, self.thread.isMuted {
subtitle.append(NSAttributedString(string: "\u{e067} ", attributes: [ .font : UIFont.ows_elegantIconsFont(10), .foregroundColor : Colors.unimportant ]))
let dateFormatter = DateFormatter()
dateFormatter.locale = Locale.current

Loading…
Cancel
Save