mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-11 14:57:12 +00:00
Handle ExpandedFolders settings from v2
This commit is contained in:
1 parent
c7ef7a1d2f
commit
87fc7b39cc
1 file changed
+8
-3
@@ -328,12 +328,17 @@
|
||||
|
||||
- (WOResponse *) getFoldersStateAction
|
||||
{
|
||||
NSString *expandedFolders;
|
||||
id o;
|
||||
NSArray *expandedFolders;
|
||||
|
||||
[self _setupContext];
|
||||
expandedFolders = [moduleSettings objectForKey: @"ExpandedFolders"];
|
||||
o = [moduleSettings objectForKey: @"ExpandedFolders"];
|
||||
if ([o isKindOfClass: [NSString class]])
|
||||
expandedFolders = [o componentsSeparatedByString: @","];
|
||||
else
|
||||
expandedFolders = o;
|
||||
|
||||
return [self responseWithStatus: 200 andString: expandedFolders];
|
||||
return [self responseWithStatus: 200 andJSONRepresentation: expandedFolders];
|
||||
}
|
||||
|
||||
- (NSString *) verticalDragHandleStyle
|
||||
|
||||
Reference in new issue
Block a user