pEpForiOS/UI/EmailDisplay/EmailListViewController.swift
branchIOS-700-sluggish-ui
changeset 3226 9295883a4519
parent 3224 44f27d1daf68
child 3266 72d4c077ec46
     1.1 --- a/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Wed Oct 18 12:59:44 2017 +0200
     1.2 +++ b/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Wed Oct 18 15:40:29 2017 +0200
     1.3 @@ -87,20 +87,18 @@
     1.4              // We came back from e.g EmailView ...
     1.5              updateFilterText()
     1.6              // ... so we want to update "seen" status
     1.7 -            DispatchQueue.main.async {
     1.8 -                vm.reloadData()
     1.9 -            }
    1.10 +            vm.reloadData()
    1.11          }
    1.12 -
    1.13 -        if folderToShow == nil {
    1.14 +        else if folderToShow == nil {
    1.15              // We have not been created to show a specific folder, thus we show unified inbox
    1.16              folderToShow = UnifiedInbox()
    1.17              resetModel()
    1.18 -        } else if model == nil {
    1.19 +        }
    1.20 +        else if model == nil {
    1.21              // We still got no model, because:
    1.22              // - We are not coming back from a pushed view (for instance ComposeEmailView)
    1.23              // - We are not a UnifiedInbox
    1.24 -            // So we have been created to show a specific folder, show it.
    1.25 +            // So we have been created to show a specific folder. Show it!
    1.26              resetModel()
    1.27          }
    1.28