mirror of
https://github.com/markqvist/LXMF.git
synced 2024-10-01 01:35:36 -04:00
Fixed paper message generation sequence
This commit is contained in:
parent
0ac4660510
commit
b894c5a2a6
@ -487,7 +487,6 @@ class LXMessage:
|
||||
return None
|
||||
|
||||
def as_uri(self, finalise=True):
|
||||
self.determine_transport_encryption()
|
||||
if not self.packed:
|
||||
self.pack()
|
||||
|
||||
@ -499,6 +498,7 @@ class LXMessage:
|
||||
lxm_uri = LXMessage.URI_SCHEMA+"://"+encoded_bytes.decode("utf-8").replace("=","")
|
||||
|
||||
if finalise:
|
||||
self.determine_transport_encryption()
|
||||
self.__mark_paper_generated()
|
||||
|
||||
return lxm_uri
|
||||
@ -507,7 +507,6 @@ class LXMessage:
|
||||
raise TypeError("Attempt to represent LXM with non-paper delivery method as URI")
|
||||
|
||||
def as_qr(self):
|
||||
self.determine_transport_encryption()
|
||||
if not self.packed:
|
||||
self.pack()
|
||||
|
||||
@ -522,6 +521,7 @@ class LXMessage:
|
||||
data = self.as_uri(finalise=False),
|
||||
)
|
||||
|
||||
self.determine_transport_encryption()
|
||||
self.__mark_paper_generated()
|
||||
|
||||
return qr
|
||||
|
Loading…
Reference in New Issue
Block a user