Allow ratchet enforcement and fixed opportunistic delivery queue handling

This commit is contained in:
Mark Qvist 2024-09-05 14:56:49 +02:00
commit 775ac7ff68
2 changed files with 14 additions and 8 deletions

View file

@ -351,7 +351,9 @@ class LXMessage:
def determine_transport_encryption(self):
# TODO: Update transport encryption descriptions to account for ratchets
# TODO: These descriptions are old and outdated.
# Update the transport encryption descriptions to
# account for ratchets and other changes.
if self.method == LXMessage.OPPORTUNISTIC:
if self.__destination.type == RNS.Destination.SINGLE:
self.transport_encrypted = True