Compare commits

...

6 Commits
0.5.2 ... 0.5.4

Author SHA1 Message Date
Mark Qvist
289136a632 Updated version 2024-10-06 11:26:05 +02:00
Mark Qvist
0e79c3299c Added opportunistic delivery if destination ratchets are available 2024-10-06 11:25:08 +02:00
Mark Qvist
c61da069f2 Updated dependencies 2024-10-06 11:14:17 +02:00
Mark Qvist
0df8b56d58 Updated versions 2024-09-17 14:53:15 +02:00
Mark Qvist
112a45f270 Fixed invalid dict key. Fixes #59. 2024-09-17 14:50:32 +02:00
Mark Qvist
03a02a9ebc Fixed incorrect display name loading in conversation list 2024-09-11 13:02:05 +02:00
4 changed files with 8 additions and 4 deletions

View File

@@ -102,7 +102,7 @@ class Conversation:
unread = True
if display_name == None and app_data:
display_name = app_data.decode("utf-8")
display_name = LXMF.display_name_from_app_data(app_data)
if display_name == None:
sort_name = ""
@@ -216,6 +216,10 @@ class Conversation:
if self.app.directory.preferred_delivery(dest.hash) == DirectoryEntry.PROPAGATED:
if self.app.message_router.get_outbound_propagation_node() != None:
desired_method = LXMF.LXMessage.PROPAGATED
else:
if not self.app.message_router.delivery_link_available(dest.hash) and RNS.Identity.current_ratchet_id(dest.hash) != None:
RNS.log(f"Have ratchet for {RNS.prettyhexrep(dest.hash)}, requesting opportunistic delivery of message", RNS.LOG_DEBUG)
desired_method = LXMF.LXMessage.OPPORTUNISTIC
dest_is_trusted = False
if self.app.directory.trust_level(dest.hash) == DirectoryEntry.TRUSTED:

View File

@@ -746,7 +746,7 @@ class NomadNetworkApp:
self.lxmf_sync_limit = None
if option == "required_stamp_cost":
value = self.config["node"]["node_name"]
value = self.config["client"][option]
if value.lower() == "none":
self.required_stamp_cost = None
else:

View File

@@ -1 +1 @@
__version__ = "0.5.2"
__version__ = "0.5.4"

View File

@@ -30,6 +30,6 @@ setuptools.setup(
entry_points= {
'console_scripts': ['nomadnet=nomadnet.nomadnet:main']
},
install_requires=["rns>=0.7.7", "lxmf>=0.5.1", "urwid>=2.4.4", "qrcode"],
install_requires=["rns>=0.8.2", "lxmf>=0.5.5", "urwid>=2.4.4", "qrcode"],
python_requires=">=3.6",
)