From 7ab2a9d3144a61909eebc1e0c5e8dbb562fc98b4 Mon Sep 17 00:00:00 2001 From: Dan Beard <5148750+DanBeard@users.noreply.github.com> Date: Sat, 2 Aug 2025 21:34:54 -0500 Subject: [PATCH] Added check for msgpack strings in case LXMF client sent that for their name --- LXMF/LXMF.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LXMF/LXMF.py b/LXMF/LXMF.py index db0edb7..d6385ca 100644 --- a/LXMF/LXMF.py +++ b/LXMF/LXMF.py @@ -115,6 +115,9 @@ def display_name_from_app_data(app_data=None): 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