Prechádzať zdrojové kódy

show grey message counter in chat list if chat is muted

cyberta 5 rokov pred
rodič
commit
86e227ec35
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      deltachat-ios/View/ContactCell.swift

+ 2 - 2
deltachat-ios/View/ContactCell.swift

@@ -199,10 +199,10 @@ class ContactCell: UITableViewCell {
             deliveryStatusIndicator.isHidden = true
             archivedIndicator.isHidden = false
         } else if unreadCount > 0 {
-            unreadMessageCounter.setCount(unreadCount)
-
             pinnedIndicator.isHidden = !(visibility==DC_CHAT_VISIBILITY_PINNED)
+            unreadMessageCounter.setCount(unreadCount)
             unreadMessageCounter.isHidden = false
+            unreadMessageCounter.backgroundColor = isMuted ? .gray : .red
             deliveryStatusIndicator.isHidden = true
             archivedIndicator.isHidden = true
         } else {