Commit 94643c97 authored by Oliver Wiese's avatar Oliver Wiese

ignore uidvalidility

parent 6baf0d22
...@@ -894,8 +894,7 @@ class DataHandler { ...@@ -894,8 +894,7 @@ class DataHandler {
if let tmpMails = finding as? [PersistentMail] { if let tmpMails = finding as? [PersistentMail] {
mails = tmpMails mails = tmpMails
} }
if finding == nil || finding!.count == 0 || mails.filter({ $0.folder.path == folderPath}).count == 0 || uid == 0 || !myfolder.uids.contains(uid) {
if finding == nil || finding!.count == 0 || mails.filter({ $0.folder.path == folderPath && $0.uidvalidity == myfolder.uidvalidity }).count == 0 || uid == 0 || !myfolder.uids.contains(uid) {
// create new mail object // create new mail object
mail = NSEntityDescription.insertNewObject(forEntityName: "PersistentMail", into: managedObjectContext) as! PersistentMail mail = NSEntityDescription.insertNewObject(forEntityName: "PersistentMail", into: managedObjectContext) as! PersistentMail
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment