(feat) newly created folders using EAS are always sync'ed by default (#3454)

This commit is contained in:
Ludovic Marcotte
2016-01-25 10:21:23 -05:00
parent 57901b8469
commit 155acfa9a6
2 changed files with 19 additions and 2 deletions

View File

@@ -403,17 +403,24 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
SOGoAppointmentFolders *appointmentFolders;
SOGoCacheGCSObject *o;
NSString *key;
id newFolder;
nameInContainer = nil;
appointmentFolders = [userFolder privateCalendars: @"Calendar" inContext: context];
[appointmentFolders newFolderWithName: displayName
nameInContainer: &nameInContainer];
newFolder = [appointmentFolders lookupName: nameInContainer
inContext: context
acquire: NO];
[newFolder setSynchronize: YES];
if (type == 13)
nameInContainer = [NSString stringWithFormat: @"vevent/%@", nameInContainer];
else
nameInContainer = [NSString stringWithFormat: @"vtodo/%@", nameInContainer];
key = [NSString stringWithFormat: @"%@+%@", [context objectForKey: @"DeviceId"], nameInContainer ];
o = [SOGoCacheGCSObject objectWithName: key inContainer: nil];
[o setObjectType: ActiveSyncFolderCacheObject];
@@ -428,12 +435,19 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
SOGoContactFolders *contactFolders;
SOGoCacheGCSObject *o;
NSString *key;
id newFolder;
nameInContainer = nil;
contactFolders = [userFolder privateContacts: @"Contacts" inContext: context];
[contactFolders newFolderWithName: displayName
nameInContainer: &nameInContainer];
newFolder = [contactFolders lookupName: nameInContainer
inContext: context
acquire: NO];
[newFolder setSynchronize: YES];
nameInContainer = [NSString stringWithFormat: @"vcard/%@", nameInContainer];
key = [NSString stringWithFormat: @"%@+%@", [context objectForKey: @"DeviceId"], nameInContainer ];

5
NEWS
View File

@@ -4,7 +4,10 @@
New features
- new junk/not junk capability with generic SMTP integration
Buf fixes
Enhancements
- newly created folders using EAS are always sync'ed by default (#3454)
Bug fixes
- now always generate invitation updates when using EAS
- rewrote the string sanitization to be 32-bit Unicode safe