Fixed getting parent

This commit is contained in:
dankito 2024-11-26 06:06:12 +01:00
parent bb5b89fd5a
commit 2b08db3374
1 changed files with 2 additions and 2 deletions

View File

@ -39,8 +39,8 @@ data class FetchEmailsStatus(
return part
}
(part as? BodyPart)?.parent.let { parent ->
return getMessage(part)
(part as? BodyPart)?.parent?.parent?.let { parent ->
return getMessage(parent)
}
return null