mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-04 21:08:51 +00:00
Serialization of the whiteList
This commit is contained in:
@@ -639,6 +639,26 @@ static NSArray *reminderValues = nil;
|
||||
return [userDefaults busyOffHours];
|
||||
}
|
||||
|
||||
- (NSString *) whiteListValue
|
||||
{
|
||||
SOGoUserSettings *us;
|
||||
id *whiteListValue;
|
||||
|
||||
us = [user userSettings];
|
||||
whiteListValue = [us objectForKey:@"whiteListInvitations"];
|
||||
|
||||
return whiteListValue;
|
||||
}
|
||||
|
||||
- (void) setWhiteListValue: (NSArray *) whiteList
|
||||
{
|
||||
SOGoUserSettings *us;
|
||||
|
||||
us = [user userSettings];
|
||||
[us setObject: whiteList forKey: @"whiteListInvitations"];
|
||||
[us synchronize];
|
||||
}
|
||||
|
||||
- (void) setPreventInvitations: (BOOL) preventInvitations
|
||||
{
|
||||
SOGoUserSettings *us;
|
||||
|
||||
Reference in New Issue
Block a user