Updated according to RNS API.

This commit is contained in:
Mark Qvist 2021-09-03 23:24:29 +02:00
parent 3b0c2cac22
commit 4d3e529e63

View File

@ -273,10 +273,6 @@ class LXMessage:
pass
def determine_transport_encryption(self):
if RNS.Reticulum.should_allow_unencrypted():
self.transport_encrypted = False
self.transport_encryption = LXMessage.ENCRYPTION_DESCRIPTION_UNENCRYPTED
else:
if self.method == LXMessage.OPPORTUNISTIC:
if self.destination.type == RNS.Destination.SINGLE:
self.transport_encrypted = True