fix(mail): use body as first part when msg has no parts

Fixes #5472
This commit is contained in:
Francis Lachapelle
2022-02-02 10:26:01 -05:00
parent e3b71bc23b
commit 4f255ac9d5
+1 -1
View File
@@ -1204,7 +1204,7 @@ static BOOL debugSoParts = NO;
/* We don't have parts here but we're trying to download the message's
content that could be an image/jpeg, as an example */
if ([parts count] == 0 && ![_key intValue])
if ([parts count] == 0 && (![_key intValue] || [_key isEqualToString: @"1"]))
{
partDesc = [self bodyStructure];
_key = @"1";