fix: draft mime type instead of composermode

This commit is contained in:
James Houlahan
2020-08-24 12:59:40 +02:00
parent 1f17628399
commit d872d77cf5
3 changed files with 19 additions and 29 deletions

View File

@ -495,12 +495,7 @@ func (b *sendPreferencesBuilder) setEncryptionPreferences(mailSettings pmapi.Mai
if b.shouldSign() && b.getScheme() == pgpInline {
b.withMIMEType("text/plain")
} else {
switch mailSettings.ComposerMode {
case pmapi.ComposerModeNormal:
b.withMIMETypeDefault("text/html")
case pmapi.ComposerModePlain:
b.withMIMETypeDefault("text/plain")
}
b.withMIMETypeDefault(mailSettings.DraftMIMEType)
}
}