From 3ceb92e584422b4269f549826c7fe10125710bbf Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Mon, 27 Jul 2015 18:01:51 -0400 Subject: [PATCH] prefer pub key as a fallback key for encryption --- edward | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edward b/edward index ddb4487..39f104d 100755 --- a/edward +++ b/edward @@ -742,8 +742,8 @@ def prepare_for_reply_pubkey (piece, replyinfo_obj): else: replyinfo_obj.public_key_received = True - if replyinfo_obj.fallback_target_key == None: - replyinfo_obj.fallback_target_key = piece.gpg_data.keys[0] + # prefer public key as a fallback for the encrypted reply + replyinfo_obj.fallback_target_key = piece.gpg_data.keys[0] def prepare_for_reply_sig (piece, replyinfo_obj): -- 2.25.1