Fix wrongly determined metadata

This commit is contained in:
KnugiHK
2023-06-20 15:32:05 +08:00
parent 828c8a1a72
commit 6c740e69a5

View File

@@ -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