mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-05 05:18:51 +00:00
(fix) Improve prevent invitations error handling
This commit is contained in:
@@ -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