Explorar el Código

show grey message counter in chat list if chat is muted

cyberta hace 5 años
padre
commit
86e227ec35
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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 {