indents
authorbuff <andreas@pep-project.org>
Wed, 01 Aug 2018 14:22:58 +0200
changeset 566140946b4a96be
parent 5659 7981aa5dc7a8
child 5662 1307161bd499
indents
pEpForiOS/Background/PersistentImapFolder.swift
     1.1 --- a/pEpForiOS/Background/PersistentImapFolder.swift	Wed Aug 01 09:16:45 2018 +0200
     1.2 +++ b/pEpForiOS/Background/PersistentImapFolder.swift	Wed Aug 01 14:22:58 2018 +0200
     1.3 @@ -246,11 +246,10 @@
     1.4                  let msn = cdMsg.imap?.messageNumber
     1.5                  cdMsg.deleteAndInformDelegate(context: self.privateMOC)
     1.6                  if let theCdFolder = cdFolder, let theMsn = msn {
     1.7 -                    let p1 = NSPredicate(
     1.8 -                        format: "parent = %@ and imap.messageNumber > %d",
     1.9 -                        theCdFolder, theMsn)
    1.10 -                    let cdMsgs = CdMessage.all(
    1.11 -                        predicate: p1, in: self.privateMOC) as? [CdMessage] ?? []
    1.12 +                    let p1 = NSPredicate(format: "parent = %@ and imap.messageNumber > %d",
    1.13 +                                         theCdFolder, theMsn)
    1.14 +                    let cdMsgs = CdMessage.all(predicate: p1,
    1.15 +                                               in: self.privateMOC) as? [CdMessage] ?? []
    1.16                      for aCdMsg in cdMsgs {
    1.17                          let oldMsn = aCdMsg.imapFields().messageNumber
    1.18                          if oldMsn > 0 {