mirror of
https://github.com/markqvist/LXMF.git
synced 2026-04-27 14:20:39 +00:00
Merge 7ab2a9d314 into 72932eea28
This commit is contained in:
commit
28d58a4d19
1 changed files with 3 additions and 0 deletions
|
|
@ -127,6 +127,9 @@ def display_name_from_app_data(app_data=None):
|
|||
dn = peer_data[0]
|
||||
if dn == None: return None
|
||||
else:
|
||||
# if it was packed as a string, then we don't need to decode it
|
||||
if isinstance(dn, str):
|
||||
return dn
|
||||
try:
|
||||
decoded = dn.decode("utf-8")
|
||||
return decoded
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue