Skip to content

Commit

Permalink
fix display names for lxmf conversations
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Sep 11, 2024
1 parent 49c26ea commit 7b4db96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meshchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -1858,7 +1858,8 @@ def get_lxmf_conversation_name(self, destination_hash):
# we will return this as the conversation name
if lxmf_announce is not None and lxmf_announce.app_data is not None:
try:
return base64.b64decode(lxmf_announce.app_data).decode("utf-8")
app_data_bytes = base64.b64decode(lxmf_announce.app_data)
return LXMF.display_name_from_app_data(app_data_bytes)
except:
pass

Expand Down

0 comments on commit 7b4db96

Please sign in to comment.