Fixed message send error

This commit is contained in:
SebastianObi 2022-10-25 09:02:42 +02:00
parent c1c06aaa4e
commit fa6c9c0545
8 changed files with 16 additions and 16 deletions

View file

@ -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: