Skip to content

Commit

Permalink
Fix invalid LXMF link handling in browser
Browse files Browse the repository at this point in the history
  • Loading branch information
markqvist committed Nov 15, 2024
1 parent 289136a commit dc43bc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nomadnet/ui/textui/Browser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import RNS
import LXMF
import os
import time
import urwid
Expand Down Expand Up @@ -252,7 +253,7 @@ def handle_lxmf_link(self, link_target):

display_name = None
if display_name_data != None:
display_name = display_name_data.decode("utf-8")
display_name = LXMF.display_name_from_app_data(display_name_data)

if not source_hash_text in [c[0] for c in existing_conversations]:
entry = DirectoryEntry(bytes.fromhex(source_hash_text), display_name=display_name)
Expand Down

0 comments on commit dc43bc6

Please sign in to comment.