pEpForiOS/UI/EmailDisplay/EmailListViewController.swift
changeset 1724 004282d9bf61
parent 1723 ef459fa4ae98
child 1725 2ef8f9937e40
     1.1 --- a/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Thu Feb 16 14:35:56 2017 +0100
     1.2 +++ b/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Thu Feb 16 18:48:12 2017 +0100
     1.3 @@ -28,6 +28,12 @@
     1.4      let searchController = UISearchController(searchResultsController: nil)
     1.5      let cellsByMessageID = NSCache<NSString, EmailListViewCell>()
     1.6  
     1.7 +    /**
     1.8 +     After trustwords have been invoked, this will be the partner identity that
     1.9 +     was either confirmed or mistrusted.
    1.10 +     */
    1.11 +    var partnerIdentity: Identity?
    1.12 +
    1.13      override func viewDidLoad() {
    1.14          super.viewDidLoad()
    1.15  
    1.16 @@ -375,10 +381,21 @@
    1.17      }
    1.18  
    1.19      /**
    1.20 -     For the unwind segue from the trustwords controller, when the user chose "trust" or
    1.21 -     "no trust".
    1.22 +     For the unwind segue from the trustwords controller, when the user choses "trusted".
    1.23 +     */
    1.24 +    @IBAction func segueUnwindTrusted(segue: UIStoryboardSegue) {
    1.25 +        if let p = partnerIdentity {
    1.26 +            PEPUtil.trust(identity: p)
    1.27 +        }
    1.28 +    }
    1.29 +
    1.30 +    /**
    1.31 +     For the unwind segue from the trustwords controller, when the user choses "untrusted".
    1.32       */
    1.33      @IBAction func segueUnwindUnTrusted(segue: UIStoryboardSegue) {
    1.34 +        if let p = partnerIdentity {
    1.35 +            PEPUtil.mistrust(identity: p)
    1.36 +        }
    1.37      }
    1.38  }
    1.39