mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-06 07:36:24 +00:00
applied comments
This commit is contained in:
@@ -641,7 +641,7 @@
|
||||
client = [[co imap4Connection] client];
|
||||
[[co imap4Connection] selectFolder: [co imap4URL]];
|
||||
result = [client storeFlags:flags forUIDs:msgUIDs addOrRemove:addOrRemove];
|
||||
if ([[[[result objectForKey:@"RawResponse"] objectForKey:@"ResponseResult"] objectForKey:@"description"] isEqualToString:@"Completed"])
|
||||
if ([[result valueForKey: @"result"] boolValue])
|
||||
response = [self responseWith204];
|
||||
else
|
||||
response = [self responseWithStatus:500 andJSONRepresentation:result];
|
||||
@@ -675,7 +675,7 @@
|
||||
[[co imap4Connection] selectFolder: [co imap4URL]];
|
||||
result = [client storeFlags:flags forUIDs:msgUIDs addOrRemove:NO];
|
||||
|
||||
if ([[[[result objectForKey:@"RawResponse"] objectForKey:@"ResponseResult"] objectForKey:@"description"] isEqualToString:@"Completed"])
|
||||
if ([[result valueForKey: @"result"] boolValue])
|
||||
response = [self responseWith204];
|
||||
else
|
||||
response = [self responseWithStatus:500 andJSONRepresentation:result];
|
||||
|
||||
Reference in New Issue
Block a user