pEpForiOS/UI/EmailDisplayList/EmailListViewController.swift
changeset 4470 234a489611a6
parent 4425 3007328e479c
child 4494 72aa4056ab4d
     1.1 --- a/pEpForiOS/UI/EmailDisplayList/EmailListViewController.swift	Fri Apr 20 16:05:49 2018 +0200
     1.2 +++ b/pEpForiOS/UI/EmailDisplayList/EmailListViewController.swift	Fri Apr 20 16:32:27 2018 +0200
     1.3 @@ -227,18 +227,6 @@
     1.4              return row.to
     1.5          }
     1.6      }
     1.7 -
     1.8 -    private func shouldShowAccessoryDisclosureIndicator() -> Bool {
     1.9 -        guard let folder = folderToShow else {
    1.10 -            Log.shared.errorAndCrash(component: #function, errorString: "No folder")
    1.11 -            return true
    1.12 -        }
    1.13 -        if folder.folderType == .drafts {
    1.14 -            // Mails in drafts folder can only be opened in compose mode, which is shown modally.
    1.15 -            return false
    1.16 -        }
    1.17 -        return true
    1.18 -    }
    1.19      
    1.20      private func configure(cell: EmailListViewCell, for indexPath: IndexPath) {
    1.21          // Configure lightweight stuff on main thread ...
    1.22 @@ -249,8 +237,6 @@
    1.23              Log.shared.errorAndCrash(component: #function, errorString: "We should have a row here")
    1.24              return
    1.25          }
    1.26 -        // Mails in drafts folder can only be opened in compose mode, which is shown modally.
    1.27 -        cell.accessoryDisclosureIndicator.isHidden = shouldShowAccessoryDisclosureIndicator()
    1.28          cell.addressLabel.text = address(forRowAt: indexPath)
    1.29          cell.subjectLabel.text = row.subject
    1.30          cell.summaryLabel.text = row.bodyPeek