mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-08 13:27:15 +00:00
1 parent
ee68cf6ed5
commit
9f96639e6f
3 files changed
+17
-4
No files matched your search
@@ -714,9 +714,17 @@
|
||||
error = [co expunge];
|
||||
if (error)
|
||||
{
|
||||
data = [NSDictionary dictionaryWithObject: [self labelForKey: @"Unable to expunge folder." inContext: context]
|
||||
forKey: @"message"];
|
||||
response = [self responseWithStatus: 500 andJSONRepresentation: data];
|
||||
if ([co isSpecialFolder])
|
||||
{
|
||||
// Special folder probably doesn't exist; ignore error.
|
||||
response = [self responseWithStatus: 204];
|
||||
}
|
||||
else
|
||||
{
|
||||
data = [NSDictionary dictionaryWithObject: [self labelForKey: @"Unable to expunge folder." inContext: context]
|
||||
forKey: @"message"];
|
||||
response = [self responseWithStatus: 500 andJSONRepresentation: data];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -730,7 +738,7 @@
|
||||
response = [self responseWithStatus: 200 andJSONRepresentation: data];
|
||||
}
|
||||
else
|
||||
response = [self responseWithStatus: 200];
|
||||
response = [self responseWithStatus: 204];
|
||||
}
|
||||
|
||||
return response;
|
||||
|
||||
Reference in new issue
Block a user