mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 02:45:25 +00:00
(fix) fixed serialization of PreventInvitationsWhitelist
This commit is contained in:
@@ -640,15 +640,21 @@ static NSArray *reminderValues = nil;
|
||||
return [userDefaults busyOffHours];
|
||||
}
|
||||
|
||||
- (NSArray *) whiteList
|
||||
- (NSString *) whiteList
|
||||
{
|
||||
SOGoUserSettings *us;
|
||||
NSMutableDictionary *moduleSettings;
|
||||
NSArray *whiteList;
|
||||
id whiteList;
|
||||
|
||||
us = [user userSettings];
|
||||
moduleSettings = [us objectForKey: @"Calendar"];
|
||||
whiteList = [moduleSettings objectForKey:@"PreventInvitationsWhitelist"];
|
||||
whiteList = [moduleSettings objectForKey: @"PreventInvitationsWhitelist"];
|
||||
|
||||
if (whiteList && [whiteList isKindOfClass: [NSDictionary class]])
|
||||
{
|
||||
whiteList = [whiteList jsonRepresentation];
|
||||
}
|
||||
|
||||
return whiteList;
|
||||
}
|
||||
|
||||
@@ -659,7 +665,7 @@ static NSArray *reminderValues = nil;
|
||||
|
||||
us = [user userSettings];
|
||||
moduleSettings = [us objectForKey: @"Calendar"];
|
||||
[moduleSettings setObject: whiteListString forKey: @"PreventInvitationsWhitelist"];
|
||||
[moduleSettings setObject: [whiteListString objectFromJSONString] forKey: @"PreventInvitationsWhitelist"];
|
||||
[us synchronize];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user