Automatically mark msg as read in Mail module

This avoids an extra XHR to the server.
This commit is contained in:
Francis Lachapelle
2016-09-22 15:51:56 -04:00
parent fcd61abc41
commit 0c9a301f25
2 changed files with 5 additions and 6 deletions
+3
View File
@@ -278,6 +278,9 @@ static NSString *mailETag = nil;
andJSONRepresentation: data];
}
// Mark message as read
[co addFlags: @"seen"];
data = [NSMutableDictionary dictionaryWithObjectsAndKeys:
[self attachmentAttrs], @"attachmentAttrs",
[self shouldAskReceipt], @"shouldAskReceipt",