pEpForiOS/UI/EmailDisplay/EmailListViewController.swift
changeset 2191 a01eb69e9664
parent 2190 4fe9e5ba269d
child 2240 cc38768aa006
     1.1 --- a/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Mon May 22 18:39:45 2017 +0200
     1.2 +++ b/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Tue May 23 11:32:32 2017 +0200
     1.3 @@ -62,6 +62,11 @@
     1.4          initialConfig()
     1.5          updateModel()
     1.6  
     1.7 +        // Mark this folder as having been looked at by the user
     1.8 +        if let fol = config?.folder {
     1.9 +            fol.updateLastLookAt()
    1.10 +        }
    1.11 +
    1.12          MessageModelConfig.messageFolderDelegate = self
    1.13      }
    1.14  
    1.15 @@ -79,7 +84,8 @@
    1.16              performSegue(withIdentifier:.segueAddNewAccount, sender: self)
    1.17          }
    1.18          if config == nil {
    1.19 -            config = EmailListConfig(appConfig: appDelegate.appConfig, folder: Folder.unifiedInbox())
    1.20 +            config = EmailListConfig(appConfig: appDelegate.appConfig,
    1.21 +                                     folder: Folder.unifiedInbox())
    1.22          }
    1.23          self.title = config?.folder?.realName
    1.24      }