IOS-328 Fixed Error Title Incorrect After Selecting Folder
authorXavier Algarra <xavier@pep-project.org>
Mon, 24 Apr 2017 13:35:36 +0200
changeset 21324289912d9366
parent 2131 89c3294029e6
child 2133 dfe6ac9012ec
IOS-328 Fixed Error Title Incorrect After Selecting Folder
pEpForiOS/UI/EmailDisplay/EmailListViewController.swift
     1.1 --- a/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Mon May 08 11:28:54 2017 +0200
     1.2 +++ b/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Mon Apr 24 13:35:36 2017 +0200
     1.3 @@ -75,15 +75,13 @@
     1.4          guard let appDelegate = UIApplication.shared.delegate as? AppDelegate else {
     1.5              return
     1.6          }
     1.7 -
     1.8 -        if config == nil {
     1.9 -            config = EmailListConfig(appConfig: appDelegate.appConfig, folder: Folder.unifiedInbox())
    1.10 -        } else if config?.folder != nil {
    1.11 -
    1.12 -        }
    1.13          if Account.all().isEmpty {
    1.14              performSegue(withIdentifier:.segueAddNewAccount, sender: self)
    1.15          }
    1.16 +        if config == nil {
    1.17 +            config = EmailListConfig(appConfig: appDelegate.appConfig, folder: Folder.unifiedInbox())
    1.18 +        }
    1.19 +        self.title = config?.folder?.realName
    1.20      }
    1.21  
    1.22      func addSearchBar() {