mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-26 16:01:33 +00:00
Add fallback to Android contact name just like commit 5f6b764
This commit is contained in:
@@ -155,7 +155,7 @@ def contacts(db, data):
|
|||||||
total_row_number = c.fetchone()[0]
|
total_row_number = c.fetchone()[0]
|
||||||
print(f"Processing contacts...({total_row_number})")
|
print(f"Processing contacts...({total_row_number})")
|
||||||
|
|
||||||
c.execute("""SELECT jid, display_name FROM wa_contacts; """)
|
c.execute("""SELECT jid, COALESCE(display_name, wa_name) as display_name FROM wa_contacts; """)
|
||||||
row = c.fetchone()
|
row = c.fetchone()
|
||||||
while row is not None:
|
while row is not None:
|
||||||
data[row["jid"]] = ChatStore(Device.ANDROID, row["display_name"])
|
data[row["jid"]] = ChatStore(Device.ANDROID, row["display_name"])
|
||||||
|
|||||||
Reference in New Issue
Block a user