feat(preferences): allow hiding of vacation the vacation period

This is controllable using the new SOGoVacationPeriodEnabled
domain defaults variable.
This commit is contained in:
Ludovic Marcotte
2019-11-05 15:33:16 -05:00
parent 32968092e2
commit c2e7f6a866
7 changed files with 81 additions and 280 deletions
+12
View File
@@ -220,6 +220,18 @@
return [self boolForKey: @"SOGoVacationEnabled"];
}
- (BOOL) vacationPeriodEnabled
{
id o;
o = [self stringForKey: @"SOGoVacationPeriodEnabled"];
if (o)
return [o boolValue];
return YES;
}
- (NSString *) vacationDefaultSubject
{
return [self stringForKey: @"SOGoVacationDefaultSubject"];