mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-30 09:31:37 +00:00
Fix an incorrect variable
This commit is contained in:
@@ -94,7 +94,7 @@ def messages(db, data, media_folder):
|
|||||||
is_group_message = content["ZGROUPINFO"] is not None
|
is_group_message = content["ZGROUPINFO"] is not None
|
||||||
if ZCONTACTJID not in data:
|
if ZCONTACTJID not in data:
|
||||||
data[ZCONTACTJID] = ChatStore(Device.IOS)
|
data[ZCONTACTJID] = ChatStore(Device.IOS)
|
||||||
path = f'{media_folder}/Media/Profile/{_id.split("@")[0]}'
|
path = f'{media_folder}/Media/Profile/{ZCONTACTJID.split("@")[0]}'
|
||||||
avatars = glob(f"{path}*")
|
avatars = glob(f"{path}*")
|
||||||
if 0 < len(avatars) <= 1:
|
if 0 < len(avatars) <= 1:
|
||||||
data[ZCONTACTJID].their_avatar = avatars[0]
|
data[ZCONTACTJID].their_avatar = avatars[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user