Explorar o código

cell size for shared chats adjusted

nayooti %!s(int64=5) %!d(string=hai) anos
pai
achega
f5ed3e9732
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      deltachat-ios/Controller/ContactDetailViewController.swift

+ 10 - 0
deltachat-ios/Controller/ContactDetailViewController.swift

@@ -97,6 +97,16 @@ class ContactDetailViewController: UITableViewController {
         }
         return 0
     }
+
+    override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
+        let type = viewModel.typeFor(section: indexPath.section)
+        switch type {
+        case .blockContact, .startChat:
+            return 44
+        case .sharedChats:
+            return ContactCell.cellHeight
+        }
+    }
     
     override func tableView(_: UITableView, viewForHeaderInSection section: Int) -> UIView? {
         if section == 0 {