nothing-unencr
quadrismegistus 4 years ago
parent 4a64b23a76
commit 11454012ab

@ -153,9 +153,10 @@ class Message(Logger):
@property
def is_encrypted(self):
if self.msg._is_encrypted is not None:
return self.msg._is_encrypted
return type(self.msg) == bytes
# if self.msg._is_encrypted is not None:
# return self.msg._is_encrypted
def encrypt(self): # each child message should already be encrypted before coming to its parent message ,recursive=False):

@ -174,8 +174,7 @@ class Operator(Keymaker):
''')
# decrypt
if msg_obj.is_encrypted:
msg_obj.decrypt()
msg_obj.decrypt()
# are there instructions for us?
if msg_obj.route:
# get result from routing

Loading…
Cancel
Save