Update vcards_contacts.py to handle enrichment of empty chat names. Fixes #162.

This commit is contained in:
jensb
2025-08-17 23:55:32 +02:00
committed by GitHub
parent 7b66fe2ee2
commit f04205cb49

View File

@@ -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)