add pubkey as a fallback key
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Thu, 23 Jul 2015 15:31:33 +0000 (11:31 -0400)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 7 Dec 2015 18:28:40 +0000 (13:28 -0500)
edward

diff --git a/edward b/edward
index c06751da7ebf1845c719180c1088704ef0b3d7f3..0c12f1eebf6f7df8e04a49802d99578af15e2c74 100755 (executable)
--- 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: