mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 19:05:25 +00:00
Add missing content type to mixed part viewer
This commit is contained in:
@@ -87,6 +87,7 @@
|
||||
id info, viewer;
|
||||
NSArray *parts;
|
||||
NSMutableArray *renderedParts;
|
||||
NSString *contentType;
|
||||
NSUInteger i, max;
|
||||
|
||||
parts = [[self bodyInfo] objectForKey: @"parts"];
|
||||
@@ -102,9 +103,13 @@
|
||||
[viewer setPartPath: [self childPartPath]];
|
||||
[renderedParts addObject: [viewer renderedPart]];
|
||||
}
|
||||
contentType = [NSString stringWithFormat: @"%@/%@",
|
||||
[[self bodyInfo] objectForKey: @"type"],
|
||||
[[self bodyInfo] objectForKey: @"subtype"]];
|
||||
|
||||
return [NSDictionary dictionaryWithObjectsAndKeys:
|
||||
[self className], @"type",
|
||||
contentType, @"contentType",
|
||||
renderedParts, @"content",
|
||||
nil];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user