mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
fix: draft mime type instead of composermode
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user