mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-09 13:57:12 +00:00
(fix) Improve prevent invitations error handling
This commit is contained in:
1 parent
beb666bc5f
commit
3872af35d1
2 files changed
+17
-6
No files matched your search
@@ -660,12 +660,17 @@ static NSArray *reminderValues = nil;
|
||||
|
||||
- (void) setWhiteList: (NSString *) whiteListString
|
||||
{
|
||||
SOGoUserSettings *us;
|
||||
NSMutableDictionary *moduleSettings;
|
||||
SOGoUserSettings *us;
|
||||
id o;
|
||||
|
||||
us = [user userSettings];
|
||||
moduleSettings = [us objectForKey: @"Calendar"];
|
||||
[moduleSettings setObject: [whiteListString objectFromJSONString] forKey: @"PreventInvitationsWhitelist"];
|
||||
|
||||
if (!(o = [whiteListString objectFromJSONString]))
|
||||
o = [NSDictionary dictionary];
|
||||
|
||||
[moduleSettings setObject: o forKey: @"PreventInvitationsWhitelist"];
|
||||
[us synchronize];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user