mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 15:46:44 +00:00
fix: sign when no contact present
This commit is contained in:
@ -401,7 +401,9 @@ func (b *sendPreferencesBuilder) setExternalPGPSettingsWithoutWKDKeys(
|
|||||||
b.withEncrypt(vCardData.Encrypt)
|
b.withEncrypt(vCardData.Encrypt)
|
||||||
|
|
||||||
// Sign must be enabled whenever encrypt is.
|
// Sign must be enabled whenever encrypt is.
|
||||||
b.withSign(vCardData.Sign || vCardData.Encrypt)
|
if vCardData.Sign || vCardData.Encrypt {
|
||||||
|
b.withSign(true)
|
||||||
|
}
|
||||||
|
|
||||||
// If the contact has a specific Scheme preference, we set it (otherwise we
|
// If the contact has a specific Scheme preference, we set it (otherwise we
|
||||||
// leave it unset to allow it to be filled in with the default value later).
|
// leave it unset to allow it to be filled in with the default value later).
|
||||||
|
|||||||
Reference in New Issue
Block a user