IOS-1190 updates exist count in any way. To make sure.
authorbuff <andreas@pep-project.org>
Wed, 01 Aug 2018 14:39:45 +0200
changeset 56621307161bd499
parent 5661 40946b4a96be
child 5663 689787cf11db
IOS-1190 updates exist count in any way. To make sure.
pEpForiOS/Background/SyncMessagesOperation.swift
pEpForiOS/Network/ImapService.swift
     1.1 --- a/pEpForiOS/Background/SyncMessagesOperation.swift	Wed Aug 01 14:22:58 2018 +0200
     1.2 +++ b/pEpForiOS/Background/SyncMessagesOperation.swift	Wed Aug 01 14:39:45 2018 +0200
     1.3 @@ -102,7 +102,7 @@
     1.4  
     1.5      func syncMessages(_ sync: ImapSync) {
     1.6          do {
     1.7 -            try sync.syncMessages(firstUID: firstUID, lastUID: lastUID)
     1.8 +            try sync.syncMessages(firstUID: firstUID, lastUID: lastUID, updateExistsCount: true)
     1.9          } catch {
    1.10              addError(error)
    1.11              waitForBackgroundTasksToFinish()
     2.1 --- a/pEpForiOS/Network/ImapService.swift	Wed Aug 01 14:22:58 2018 +0200
     2.2 +++ b/pEpForiOS/Network/ImapService.swift	Wed Aug 01 14:39:45 2018 +0200
     2.3 @@ -238,8 +238,8 @@
     2.4          folder.fetchUidsForNewMails()
     2.5      }
     2.6  
     2.7 -    open func syncMessages(firstUID: UInt, lastUID: UInt) throws {
     2.8 -        let folder = try openFolder(updateExistsCount: false)
     2.9 +    open func syncMessages(firstUID: UInt, lastUID: UInt, updateExistsCount: Bool = false) throws {
    2.10 +        let folder = try openFolder(updateExistsCount: updateExistsCount)
    2.11          folder.syncExistingFirstUID(firstUID, lastUID: lastUID)
    2.12      }
    2.13