mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-23 10:26:44 +00:00
fix: don't assume contact keys are armored
This commit is contained in:
@ -65,6 +65,7 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/)
|
|||||||
* GODT-308 Reduce minimum read speed threshold to avoid issues with flaky internet.
|
* GODT-308 Reduce minimum read speed threshold to avoid issues with flaky internet.
|
||||||
* GODT-321 Changing address ordering would cause all messages to disappear in combined mode.
|
* GODT-321 Changing address ordering would cause all messages to disappear in combined mode.
|
||||||
* GODT-129 Fix custom message PGP by using template.
|
* GODT-129 Fix custom message PGP by using template.
|
||||||
|
* GODT-280 Don't assume contact keys are stored armored.
|
||||||
|
|
||||||
|
|
||||||
## [v1.2.8] Donghai-fix-append (beta 2020-06-XXX)
|
## [v1.2.8] Donghai-fix-append (beta 2020-06-XXX)
|
||||||
|
|||||||
@ -250,7 +250,7 @@ func (su *smtpUser) Send(from string, to []string, messageReader io.Reader) (err
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
for _, contactRawKey := range contactMeta.Keys {
|
for _, contactRawKey := range contactMeta.Keys {
|
||||||
contactKey, err := crypto.NewKeyFromArmored(contactRawKey)
|
contactKey, err := crypto.NewKey([]byte(contactRawKey))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user