This commit is contained in:
Mark Qvist 2026-04-21 19:17:14 +02:00
commit 04908eb45b
3 changed files with 7 additions and 13 deletions

View file

@ -2872,7 +2872,7 @@ class SidebandApp(MDApp):
else:
self.messages_view.ids.messages_scrollview.dest_known = False
if self.messages_view.ids.nokeys_text.text == "":
keys_str = "The crytographic keys for the destination address are unknown at this time. You can wait for an announce to arrive, or query the network for the necessary keys."
keys_str = "The cryptographic keys for the destination address are unknown at this time. You can wait for an announce to arrive, or query the network for the necessary keys."
self.messages_view.ids.nokeys_text.text = keys_str
self.widget_hide(self.messages_view.ids.message_input_part, True)
self.widget_hide(self.messages_view.ids.message_ptt, True)

View file

@ -957,10 +957,8 @@ class SidebandCore():
def log_announce(self, dest, app_data, dest_type, stamp_cost=None, link_stats=None):
try:
if app_data == None:
app_data = b""
if type(app_data) != bytes:
app_data = msgpack.packb([app_data, stamp_cost])
if app_data == None: app_data = b""
if type(app_data) != bytes: app_data = msgpack.packb([app_data, stamp_cost])
RNS.log("Received "+str(dest_type)+" announce for "+RNS.prettyhexrep(dest), RNS.LOG_DEBUG)
self._db_save_announce(dest, app_data, dest_type, link_stats)
self.setstate("app.flags.new_announces", True)
@ -3418,14 +3416,10 @@ class SidebandCore():
def is_known(self, dest_hash):
try:
source_identity = RNS.Identity.recall(dest_hash)
if source_identity: return True
else: return False
if source_identity:
return True
else:
return False
except Exception as e:
return False
except Exception as e: return False
def request_key(self, dest_hash):
try:

View file

@ -114,7 +114,7 @@ setuptools.setup(
]
},
install_requires=[
"rns>=1.1.7",
"rns>=1.1.8",
"lxmf>=0.9.5",
"lxst>=0.4.6",
"kivy>=2.3.0",