From 44fe39b73af09176f98ed4b9420f6a0fc3d694ca Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Thu, 23 Jul 2015 11:31:33 -0400 Subject: [PATCH] add pubkey as a fallback key --- edward | 3 +++ 1 file changed, 3 insertions(+) diff --git a/edward b/edward index c06751d..0c12f1e 100755 --- a/edward +++ b/edward @@ -354,6 +354,9 @@ def prepare_for_reply_pieces (eddymsg_obj, 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] + elif (piece.piece_type == "clearsign") \ or (piece.piece_type == "detachedsig"): if piece.gpg_data == None: -- 2.25.1