Merge pull request #163 from jensb/fix-162-empty-chat-names

Update vcards_contacts.py to handle enrichment of empty chat names (#162)
This commit is contained in:
Knugi
2025-08-19 22:35:46 +08:00
committed by GitHub
8 changed files with 121 additions and 17 deletions

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)