From f04205cb49abe60fbf0776a1fdf778d82caacbc0 Mon Sep 17 00:00:00 2001 From: jensb Date: Sun, 17 Aug 2025 23:55:32 +0200 Subject: [PATCH] Update vcards_contacts.py to handle enrichment of empty chat names. Fixes #162. --- Whatsapp_Chat_Exporter/vcards_contacts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Whatsapp_Chat_Exporter/vcards_contacts.py b/Whatsapp_Chat_Exporter/vcards_contacts.py index ea38371..2a74bf9 100644 --- a/Whatsapp_Chat_Exporter/vcards_contacts.py +++ b/Whatsapp_Chat_Exporter/vcards_contacts.py @@ -24,7 +24,7 @@ class ContactsFromVCards: continue for chat in filter_chats_by_prefix(chats, number).values(): - if not hasattr(chat, 'name') or (hasattr(chat, 'name') and chat.name is None): + if not hasattr(chat, 'name') or (hasattr(chat, 'name') and (chat.name is None or chat.name == '')): setattr(chat, 'name', name)