mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-20 13:11:15 +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
|
continue
|
||||||
|
|
||||||
for chat in filter_chats_by_prefix(chats, number).values():
|
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)
|
setattr(chat, 'name', name)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user