pEpForiOS/UI/EmailDisplay/EmailListViewController.swift
changeset 2191 a01eb69e9664
parent 2190 4fe9e5ba269d
child 2240 cc38768aa006
equal deleted inserted replaced
2190:4fe9e5ba269d 2191:a01eb69e9664
    60 
    60 
    61         setDefaultColors()
    61         setDefaultColors()
    62         initialConfig()
    62         initialConfig()
    63         updateModel()
    63         updateModel()
    64 
    64 
       
    65         // Mark this folder as having been looked at by the user
       
    66         if let fol = config?.folder {
       
    67             fol.updateLastLookAt()
       
    68         }
       
    69 
    65         MessageModelConfig.messageFolderDelegate = self
    70         MessageModelConfig.messageFolderDelegate = self
    66     }
    71     }
    67 
    72 
    68 
    73 
    69     override func viewWillDisappear(_ animated: Bool) {
    74     override func viewWillDisappear(_ animated: Bool) {
    77         }
    82         }
    78         if Account.all().isEmpty {
    83         if Account.all().isEmpty {
    79             performSegue(withIdentifier:.segueAddNewAccount, sender: self)
    84             performSegue(withIdentifier:.segueAddNewAccount, sender: self)
    80         }
    85         }
    81         if config == nil {
    86         if config == nil {
    82             config = EmailListConfig(appConfig: appDelegate.appConfig, folder: Folder.unifiedInbox())
    87             config = EmailListConfig(appConfig: appDelegate.appConfig,
       
    88                                      folder: Folder.unifiedInbox())
    83         }
    89         }
    84         self.title = config?.folder?.realName
    90         self.title = config?.folder?.realName
    85     }
    91     }
    86 
    92 
    87     func addSearchBar() {
    93     func addSearchBar() {