save draft message to the correct folder IOS-230
authorXavier Algarra <xavier@pep-project.org>
Tue, 25 Oct 2016 12:35:39 +0200
branchIOS-230
changeset 870dd67c28b7449
parent 868 0664f5352a31
child 874 b075d5de7688
child 1368 75d5ebf34b25
save draft message to the correct folder
pEpForiOS/UI/EmailDisplay/EmailListViewController.swift
     1.1 --- a/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Tue Oct 25 11:33:55 2016 +0200
     1.2 +++ b/pEpForiOS/UI/EmailDisplay/EmailListViewController.swift	Tue Oct 25 12:35:39 2016 +0200
     1.3 @@ -131,6 +131,11 @@
     1.4          guard let account = config.account else {
     1.5              return
     1.6          }
     1.7 +        
     1.8 +        if let folder = account.folder(ofType: FolderType.drafts) {
     1.9 +            folder.save(message: message)
    1.10 +            return
    1.11 +        }
    1.12      }
    1.13  
    1.14      func updateModel() {