mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2026-02-11 11:38:33 +00:00
fix: pubkey should not be collected as attachment
This commit is contained in:
@ -322,7 +322,9 @@ func TestParseWithAttachedPublicKey(t *testing.T) {
|
||||
assert.Equal(t, "body", m.Body)
|
||||
assert.Equal(t, "body", plainBody)
|
||||
|
||||
require.Len(t, attReaders, 1)
|
||||
// The pubkey should not be collected as an attachment.
|
||||
// We upload the pubkey when creating the draft.
|
||||
require.Len(t, attReaders, 0)
|
||||
}
|
||||
|
||||
func TestParseTextHTMLWithEmbeddedForeignEncoding(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user