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

This commit is contained in:
Ryan ZHAO 2020-08-12 16:26:15 +10:00
parent caaf396010
commit 74a49ab46d
1 changed files with 1 additions and 1 deletions

View File

@ -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