Bug fix on ChatStore initialization

This commit is contained in:
KnugiHK
2023-04-09 02:05:17 +08:00
parent 3e7d7916a7
commit b371587d65

View File

@@ -157,7 +157,7 @@ def contacts(db, data):
c.execute("""SELECT jid, display_name FROM wa_contacts; """)
row = c.fetchone()
while row is not None:
data[row[0]] = {"name": row[1], "messages": {}}
data[row["jid"]] = ChatStore(row["display_name"])
row = c.fetchone()