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)