mirror of
https://github.com/markqvist/LXMF-Tools.git
synced 2024-10-01 03:15:38 -04:00
Fixed message send error
This commit is contained in:
parent
c1c06aaa4e
commit
fa6c9c0545
@ -258,7 +258,7 @@ class lxmf_connection:
|
||||
return ""
|
||||
|
||||
|
||||
def send(self, destination, content="", title=None, fields=None, timestamp=None, app_data=""):
|
||||
def send(self, destination, content="", title="", fields=None, timestamp=None, app_data=""):
|
||||
if type(destination) is not bytes:
|
||||
if len(destination) == ((RNS.Reticulum.TRUNCATED_HASHLENGTH//8)*2)+2:
|
||||
destination = destination[1:-1]
|
||||
@ -278,7 +278,7 @@ class lxmf_connection:
|
||||
self.send_message(destination, self.destination, content, title, fields, timestamp, app_data)
|
||||
|
||||
|
||||
def send_message(self, destination, source, content="", title=None, fields=None, timestamp=None, app_data=""):
|
||||
def send_message(self, destination, source, content="", title="", fields=None, timestamp=None, app_data=""):
|
||||
if self.desired_method_direct:
|
||||
desired_method = LXMF.LXMessage.DIRECT
|
||||
else:
|
||||
|
@ -256,7 +256,7 @@ class lxmf_connection:
|
||||
return ""
|
||||
|
||||
|
||||
def send(self, destination, content="", title=None, fields=None, timestamp=None, app_data=""):
|
||||
def send(self, destination, content="", title="", fields=None, timestamp=None, app_data=""):
|
||||
if type(destination) is not bytes:
|
||||
if len(destination) == ((RNS.Reticulum.TRUNCATED_HASHLENGTH//8)*2)+2:
|
||||
destination = destination[1:-1]
|
||||
@ -276,7 +276,7 @@ class lxmf_connection:
|
||||
self.send_message(destination, self.destination, content, title, fields, timestamp, app_data)
|
||||
|
||||
|
||||
def send_message(self, destination, source, content="", title=None, fields=None, timestamp=None, app_data=""):
|
||||
def send_message(self, destination, source, content="", title="", fields=None, timestamp=None, app_data=""):
|
||||
if self.desired_method_direct:
|
||||
desired_method = LXMF.LXMessage.DIRECT
|
||||
else:
|
||||
|
@ -254,7 +254,7 @@ class lxmf_connection:
|
||||
return ""
|
||||
|
||||
|
||||
def send(self, destination, content="", title=None, fields=None, timestamp=None, app_data=""):
|
||||
def send(self, destination, content="", title="", fields=None, timestamp=None, app_data=""):
|
||||
if type(destination) is not bytes:
|
||||
if len(destination) == ((RNS.Reticulum.TRUNCATED_HASHLENGTH//8)*2)+2:
|
||||
destination = destination[1:-1]
|
||||
@ -274,7 +274,7 @@ class lxmf_connection:
|
||||
self.send_message(destination, self.destination, content, title, fields, timestamp, app_data)
|
||||
|
||||
|
||||
def send_message(self, destination, source, content="", title=None, fields=None, timestamp=None, app_data=""):
|
||||
def send_message(self, destination, source, content="", title="", fields=None, timestamp=None, app_data=""):
|
||||
if self.desired_method_direct:
|
||||
desired_method = LXMF.LXMessage.DIRECT
|
||||
else:
|
||||
|
@ -260,7 +260,7 @@ class lxmf_connection:
|
||||
return ""
|
||||
|
||||
|
||||
def send(self, destination, content="", title=None, fields=None, timestamp=None, app_data=""):
|
||||
def send(self, destination, content="", title="", fields=None, timestamp=None, app_data=""):
|
||||
if type(destination) is not bytes:
|
||||
if len(destination) == ((RNS.Reticulum.TRUNCATED_HASHLENGTH//8)*2)+2:
|
||||
destination = destination[1:-1]
|
||||
@ -280,7 +280,7 @@ class lxmf_connection:
|
||||
self.send_message(destination, self.destination, content, title, fields, timestamp, app_data)
|
||||
|
||||
|
||||
def send_message(self, destination, source, content="", title=None, fields=None, timestamp=None, app_data=""):
|
||||
def send_message(self, destination, source, content="", title="", fields=None, timestamp=None, app_data=""):
|
||||
if self.desired_method_direct:
|
||||
desired_method = LXMF.LXMessage.DIRECT
|
||||
else:
|
||||
|
@ -252,7 +252,7 @@ class lxmf_connection:
|
||||
return ""
|
||||
|
||||
|
||||
def send(self, destination, content="", title=None, fields=None, timestamp=None, app_data=""):
|
||||
def send(self, destination, content="", title="", fields=None, timestamp=None, app_data=""):
|
||||
if type(destination) is not bytes:
|
||||
if len(destination) == ((RNS.Reticulum.TRUNCATED_HASHLENGTH//8)*2)+2:
|
||||
destination = destination[1:-1]
|
||||
@ -272,7 +272,7 @@ class lxmf_connection:
|
||||
self.send_message(destination, self.destination, content, title, fields, timestamp, app_data)
|
||||
|
||||
|
||||
def send_message(self, destination, source, content="", title=None, fields=None, timestamp=None, app_data=""):
|
||||
def send_message(self, destination, source, content="", title="", fields=None, timestamp=None, app_data=""):
|
||||
if self.desired_method_direct:
|
||||
desired_method = LXMF.LXMessage.DIRECT
|
||||
else:
|
||||
|
@ -250,7 +250,7 @@ class lxmf_connection:
|
||||
return ""
|
||||
|
||||
|
||||
def send(self, destination, content="", title=None, fields=None, timestamp=None, app_data=""):
|
||||
def send(self, destination, content="", title="", fields=None, timestamp=None, app_data=""):
|
||||
if type(destination) is not bytes:
|
||||
if len(destination) == ((RNS.Reticulum.TRUNCATED_HASHLENGTH//8)*2)+2:
|
||||
destination = destination[1:-1]
|
||||
@ -270,7 +270,7 @@ class lxmf_connection:
|
||||
self.send_message(destination, self.destination, content, title, fields, timestamp, app_data)
|
||||
|
||||
|
||||
def send_message(self, destination, source, content="", title=None, fields=None, timestamp=None, app_data=""):
|
||||
def send_message(self, destination, source, content="", title="", fields=None, timestamp=None, app_data=""):
|
||||
if self.desired_method_direct:
|
||||
desired_method = LXMF.LXMessage.DIRECT
|
||||
else:
|
||||
|
@ -251,7 +251,7 @@ class lxmf_connection:
|
||||
return ""
|
||||
|
||||
|
||||
def send(self, destination, content="", title=None, fields=None, timestamp=None, app_data=""):
|
||||
def send(self, destination, content="", title="", fields=None, timestamp=None, app_data=""):
|
||||
if type(destination) is not bytes:
|
||||
if len(destination) == ((RNS.Reticulum.TRUNCATED_HASHLENGTH//8)*2)+2:
|
||||
destination = destination[1:-1]
|
||||
@ -271,7 +271,7 @@ class lxmf_connection:
|
||||
self.send_message(destination, self.destination, content, title, fields, timestamp, app_data)
|
||||
|
||||
|
||||
def send_message(self, destination, source, content="", title=None, fields=None, timestamp=None, app_data=""):
|
||||
def send_message(self, destination, source, content="", title="", fields=None, timestamp=None, app_data=""):
|
||||
if self.desired_method_direct:
|
||||
desired_method = LXMF.LXMessage.DIRECT
|
||||
else:
|
||||
|
@ -354,7 +354,7 @@ class lxmf_connection:
|
||||
return ""
|
||||
|
||||
|
||||
def send(self, destination, content="", title=None, fields=None, timestamp=None, app_data=""):
|
||||
def send(self, destination, content="", title="", fields=None, timestamp=None, app_data=""):
|
||||
if type(destination) is not bytes:
|
||||
if len(destination) == ((RNS.Reticulum.TRUNCATED_HASHLENGTH//8)*2)+2:
|
||||
destination = destination[1:-1]
|
||||
@ -374,7 +374,7 @@ class lxmf_connection:
|
||||
self.send_message(destination, self.destination, content, title, fields, timestamp, app_data)
|
||||
|
||||
|
||||
def send_message(self, destination, source, content="", title=None, fields=None, timestamp=None, app_data=""):
|
||||
def send_message(self, destination, source, content="", title="", fields=None, timestamp=None, app_data=""):
|
||||
if self.desired_method_direct:
|
||||
desired_method = LXMF.LXMessage.DIRECT
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user