mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-24 12:55:24 +00:00
Fix regression when saving mail folders state
This commit is contained in:
@@ -403,16 +403,18 @@
|
||||
- (WOResponse *) saveFoldersStateAction
|
||||
{
|
||||
WORequest *request;
|
||||
NSString *expandedFolders;
|
||||
NSArray *expandedFolders;
|
||||
NSString *json;
|
||||
|
||||
[self _setupContext];
|
||||
request = [context request];
|
||||
expandedFolders = [request formValueForKey: @"expandedFolders"];
|
||||
|
||||
[moduleSettings setObject: [expandedFolders componentsSeparatedByString: @","]
|
||||
forKey: @"ExpandedFolders"];
|
||||
|
||||
[us synchronize];
|
||||
json = [request formValueForKey: @"expandedFolders"];
|
||||
if ([json length])
|
||||
{
|
||||
expandedFolders = [json objectFromJSONString];
|
||||
[moduleSettings setObject: expandedFolders forKey: @"ExpandedFolders"];
|
||||
[us synchronize];
|
||||
}
|
||||
|
||||
return [self responseWithStatus: 204];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user