mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-21 22:32:45 +00:00
(feat) newly created folders using EAS are always sync'ed by default (#3454)
This commit is contained in:
@@ -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
5
NEWS
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user