mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-01-28 21:30:43 +00:00
Update vcards_contacts.py to handle enrichment of empty chat names. Fixes #162.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user