Ver código fonte

remove now superfluous nil-coalescing operator

B. Petersen 3 anos atrás
pai
commit
a2ce9d0888

+ 2 - 2
deltachat-ios/Controller/ContactDetailViewController.swift

@@ -33,8 +33,8 @@ class ContactDetailViewController: UITableViewController {
 
 
     private lazy var blockContactCell: ActionCell = {
     private lazy var blockContactCell: ActionCell = {
         let cell = ActionCell()
         let cell = ActionCell()
-        cell.actionTitle = (viewModel.contact.isBlocked ?? false) ? String.localized("menu_unblock_contact") : String.localized("menu_block_contact")
-        cell.actionColor = (viewModel.contact.isBlocked ?? false) ? SystemColor.blue.uiColor : UIColor.red
+        cell.actionTitle = viewModel.contact.isBlocked ? String.localized("menu_unblock_contact") : String.localized("menu_block_contact")
+        cell.actionColor = viewModel.contact.isBlocked ? SystemColor.blue.uiColor : UIColor.red
         return cell
         return cell
     }()
     }()