fix(mail(js)): hide sign and encrypt options if not usable

When composing a message, don't offer to sign nor encrypt the message
if user has not uploaded a certificate or if S/MIME is disabled.
This commit is contained in:
Francis Lachapelle
2021-08-12 13:40:47 -04:00
parent 3388c18466
commit eb46415711
4 changed files with 19 additions and 9 deletions
+1 -1
View File
@@ -945,7 +945,7 @@
[mailAccount setObject: delegates forKey: @"delegates"];
// 9. Security
if ([[_defaults mailCertificate] length])
if ([[self domainDefaults] mailCertificateEnabled] && [[_defaults mailCertificate] length])
{
security = [NSMutableDictionary new];