mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-11 16:28:51 +00:00
Monotone-Parent: b8dd0da637c01e983924030f920c45d1581a5e95
Monotone-Revision: f845aee937de02ccc5aaec9e4f9592ddeea27abf Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-03-20T19:42:44 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
values are not nil before putting them in the cache. This fixes an
|
||||
exception occuring for setting a nil key in a dictionary.
|
||||
([SOGoUser -userSettings]): same as above.
|
||||
([SOGoUser -userDefaults]): if "value" is null, meaning that
|
||||
database connectivity has failed, don't try to set default values,
|
||||
which would trigger other connection tries.
|
||||
|
||||
2009-03-19 Francis Lachapelle <flachapelle@inverse.ca>
|
||||
|
||||
|
||||
@@ -461,22 +461,22 @@ _timeValue (NSString *key)
|
||||
defaults = [self primaryUserDefaults];
|
||||
if (defaults)
|
||||
{
|
||||
// Required parameters for the Web interface
|
||||
if (![[defaults stringForKey: @"ReplyPlacement"] length])
|
||||
[defaults setObject: defaultReplyPlacement forKey: @"ReplyPlacement"];
|
||||
if (![[defaults stringForKey: @"SignaturePlacement"] length])
|
||||
[defaults setObject: defaultSignaturePlacement forKey: @"SignaturePlacement"];
|
||||
if (![[defaults stringForKey: @"MessageForwarding"] length])
|
||||
[defaults setObject: defaultMessageForwarding forKey: @"MessageForwarding"];
|
||||
if (![[defaults stringForKey: @"MessageCheck"] length])
|
||||
[defaults setObject: defaultMessageCheck forKey: @"MessageCheck"];
|
||||
|
||||
// We propagate the loaded user defaults to other sogod instances
|
||||
// which will cache them in SOGoCache (including for the instance
|
||||
// that actually posts the notification)
|
||||
values = [defaults values];
|
||||
if (values)
|
||||
{
|
||||
// Required parameters for the Web interface
|
||||
if (![[defaults stringForKey: @"ReplyPlacement"] length])
|
||||
[defaults setObject: defaultReplyPlacement forKey: @"ReplyPlacement"];
|
||||
if (![[defaults stringForKey: @"SignaturePlacement"] length])
|
||||
[defaults setObject: defaultSignaturePlacement forKey: @"SignaturePlacement"];
|
||||
if (![[defaults stringForKey: @"MessageForwarding"] length])
|
||||
[defaults setObject: defaultMessageForwarding forKey: @"MessageForwarding"];
|
||||
if (![[defaults stringForKey: @"MessageCheck"] length])
|
||||
[defaults setObject: defaultMessageCheck forKey: @"MessageCheck"];
|
||||
|
||||
// We propagate the loaded user defaults to other sogod instances
|
||||
// which will cache them in SOGoCache (including for the instance
|
||||
// that actually posts the notification)
|
||||
d = [NSMutableDictionary dictionary];
|
||||
[d setObject: values forKey: @"values"];
|
||||
[d setObject: login forKey: @"uid"];
|
||||
|
||||
Reference in New Issue
Block a user