IOS-340 code clean
authorXavier Algarra <xavier@pep-project.org>
Mon, 10 Jul 2017 16:38:16 +0200
changeset 2404092e3013db61
parent 2403 8f205242f239
child 2405 23f889f4a250
IOS-340 code clean
pEpForiOS/UI/EmailDisplay/EmailListViewController.swift
     1.1 --- a/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Mon Jul 10 16:37:56 2017 +0200
     1.2 +++ b/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Mon Jul 10 16:38:16 2017 +0200
     1.3 @@ -163,10 +163,8 @@
     1.4          let cell = tableView.dequeueReusableCell(
     1.5              withIdentifier: "EmailListViewCell", for: indexPath) as! EmailListViewCell
     1.6          //mantener el configure cell para tal de no generar un vm para celdas
     1.7 -        if let message = cell.configureCell(config: config, indexPath: indexPath) {
     1.8 -            viewModel?.associate(cell: cell, position: indexPath.row)
     1.9 -            //associate(message: message, toCell: cell)
    1.10 -        }
    1.11 +        let _ = cell.configureCell(config: config, indexPath: indexPath)
    1.12 +        viewModel?.associate(cell: cell, position: indexPath.row)
    1.13          return cell
    1.14      }
    1.15  
    1.16 @@ -379,6 +377,8 @@
    1.17                  let email = cell.messageAt(indexPath: indexPath, config: config) {
    1.18                  vc.appConfig = config?.appConfig
    1.19                  vc.message = email
    1.20 +                vc.folderShow = viewModel?.folderToShow
    1.21 +                vc.messageId = indexPath.row
    1.22              }
    1.23              break
    1.24          case .segueForward: