Skip to content

Commit

Permalink
Temporary workaround mentioned in #48
Browse files Browse the repository at this point in the history
  • Loading branch information
KnugiHK committed Jun 20, 2023
1 parent db1cdf8 commit e522885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Whatsapp_Chat_Exporter/extract_iphone.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def messages(db, data, media_folder):
data[contact_id].their_avatar = avatars[0]
else:
for avatar in avatars:
if avatar.endswith(".thumb"):
if avatar.endswith(".thumb") and data[content["ZCONTACTJID"]].their_avatar_thumb is None:
data[contact_id].their_avatar_thumb = avatar
elif avatar.endswith(".jpg"):
elif avatar.endswith(".jpg") and data[content["ZCONTACTJID"]].their_avatar is None:
data[contact_id].their_avatar = avatar
content = c.fetchone()

Expand Down

0 comments on commit e522885

Please sign in to comment.