Browse Source

remove now superfluous nil-coalescing operator

B. Petersen 4 years ago
parent
commit
a2ce9d0888
1 changed files with 2 additions and 2 deletions
  1. 2 2
      deltachat-ios/Controller/ContactDetailViewController.swift

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

@@ -33,8 +33,8 @@ class ContactDetailViewController: UITableViewController {
 
     private lazy var blockContactCell: 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
     }()