mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-13 12:25:08 +00:00
See ChangeLog
Monotone-Parent: 916c7ceb6091d24b72b12cfcc4cb930fd83a96f8 Monotone-Revision: 434bb07a3b51027135236efad4365813a470e946 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2008-11-20T19:17:59 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
+16
-20
@@ -240,32 +240,28 @@ static SOGoCache *sharedCache = nil;
|
||||
|
||||
- (void) _userDefaultsHaveChanged: (NSNotification *) theNotification
|
||||
{
|
||||
SOGoUserDefaults *d;
|
||||
|
||||
d = [[SOGoUserDefaults alloc] initWithTableURL: [[theNotification userInfo] objectForKey: @"url"]
|
||||
uid: [[theNotification userInfo] objectForKey: @"uid"]
|
||||
fieldName: [[theNotification userInfo] objectForKey: @"fieldName"]];
|
||||
[d setValues: [[theNotification userInfo] objectForKey: @"values"]];
|
||||
SOGoUser *user;
|
||||
NSString *uid;
|
||||
|
||||
|
||||
[SOGoCache setCachedUserDefaults: d
|
||||
user: [[theNotification userInfo] objectForKey: @"uid"]];
|
||||
[d release];
|
||||
uid = [[theNotification userInfo] objectForKey: @"uid"];
|
||||
|
||||
if ((user = [users objectForKey: uid]))
|
||||
{
|
||||
[[user userDefaults] setValues: [[theNotification userInfo] objectForKey: @"values"]];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) _userSettingsHaveChanged: (NSNotification *) theNotification
|
||||
{
|
||||
SOGoUserDefaults *d;
|
||||
|
||||
d = [[SOGoUserDefaults alloc] initWithTableURL: [[theNotification userInfo] objectForKey: @"url"]
|
||||
uid: [[theNotification userInfo] objectForKey: @"uid"]
|
||||
fieldName: [[theNotification userInfo] objectForKey: @"fieldName"]];
|
||||
[d setValues: [[theNotification userInfo] objectForKey: @"values"]];
|
||||
SOGoUser *user;
|
||||
NSString *uid;
|
||||
|
||||
|
||||
[SOGoCache setCachedUserSettings: d
|
||||
user: [[theNotification userInfo] objectForKey: @"uid"]];
|
||||
[d release];
|
||||
uid = [[theNotification userInfo] objectForKey: @"uid"];
|
||||
|
||||
if ((user = [users objectForKey: uid]))
|
||||
{
|
||||
[[user userSettings] setValues: [[theNotification userInfo] objectForKey: @"values"]];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) _cleanupSources
|
||||
|
||||
Reference in New Issue
Block a user