mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-22 05:54:40 +00:00
Fix wrongly determined metadata
This commit is contained in:
@@ -328,7 +328,7 @@ def messages(db, data, media_folder):
|
|||||||
if (not table_message and "-" in content["key_remote_jid"]) or \
|
if (not table_message and "-" in content["key_remote_jid"]) or \
|
||||||
(table_message and content["chat_subject"] is not None):
|
(table_message and content["chat_subject"] is not None):
|
||||||
# Is Group
|
# Is Group
|
||||||
if content["data"] is not None:
|
if content["data"] is not None and content["data"] != "":
|
||||||
try:
|
try:
|
||||||
int(content["data"])
|
int(content["data"])
|
||||||
except ValueError:
|
except ValueError:
|
||||||
@@ -338,7 +338,7 @@ def messages(db, data, media_folder):
|
|||||||
else:
|
else:
|
||||||
invalid = True
|
invalid = True
|
||||||
else:
|
else:
|
||||||
thumb_image = content["thumb_image"]
|
thumb_image = content["thumb_image"] # Not applicable for new schema
|
||||||
if thumb_image is not None:
|
if thumb_image is not None:
|
||||||
if b"\x00\x00\x01\x74\x00\x1A" in thumb_image:
|
if b"\x00\x00\x01\x74\x00\x1A" in thumb_image:
|
||||||
# Add user
|
# Add user
|
||||||
|
|||||||
Reference in New Issue
Block a user