mirror of
https://github.com/markqvist/LXMF-Tools.git
synced 2025-05-13 03:22:16 -04:00
Fixed message send error
This commit is contained in:
parent
c1c06aaa4e
commit
fa6c9c0545
8 changed files with 16 additions and 16 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue