From 74a49ab46dfa3de498ecaf2a0b3049e980375eae Mon Sep 17 00:00:00 2001
From: Ryan ZHAO <ryanzhaors@qq.com>
Date: Wed, 12 Aug 2020 16:26:15 +1000
Subject: [PATCH] fix muted label not disappear after the end of the set period

---
 Signal/src/Loki/Components/ConversationTitleView.swift | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Signal/src/Loki/Components/ConversationTitleView.swift b/Signal/src/Loki/Components/ConversationTitleView.swift
index 79f3f6d35..6de074a79 100644
--- a/Signal/src/Loki/Components/ConversationTitleView.swift
+++ b/Signal/src/Loki/Components/ConversationTitleView.swift
@@ -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