mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-02 20:08:51 +00:00
Handle not found objects and correctly get all "Collection"
This commit is contained in:
@@ -318,6 +318,13 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
inContext: context
|
||||
acquire: NO];
|
||||
|
||||
// Object was removed inbetween sync/commands?
|
||||
if ([sogoObject isKindOfClass: [NSException class]])
|
||||
{
|
||||
// FIXME - return status == 8
|
||||
continue;
|
||||
}
|
||||
|
||||
switch (theFolderType)
|
||||
{
|
||||
case ActiveSyncContactFolder:
|
||||
@@ -903,7 +910,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
[s appendString: @"<!DOCTYPE ActiveSync PUBLIC \"-//MICROSOFT//DTD ActiveSync//EN\" \"http://www.microsoft.com/\">"];
|
||||
[s appendString: @"<Sync xmlns=\"AirSync:\"><Collections>"];
|
||||
|
||||
allCollections = (id)[theDocumentElement getElementsByTagName: @"Collections"];
|
||||
allCollections = (id)[theDocumentElement getElementsByTagName: @"Collection"];
|
||||
|
||||
for (i = 0; i < [allCollections count]; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user