Fixed destination type reference

This commit is contained in:
Mark Qvist 2022-04-13 11:14:41 +02:00
parent 505176b6ee
commit 2d1828513f

View File

@ -308,7 +308,7 @@ class LXMessage:
if self.__destination.type == RNS.Destination.SINGLE:
self.transport_encrypted = True
self.transport_encryption = LXMessage.ENCRYPTION_DESCRIPTION_EC
elif destination_type == RNS.Destination.GROUP:
elif self.__destination.type == RNS.Destination.GROUP:
self.transport_encrypted = True
self.transport_encryption = LXMessage.ENCRYPTION_DESCRIPTION_AES
else: