mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-23 22:41:39 +00:00
Fix handling of empty quoted_content
This commit is contained in:
@@ -196,7 +196,10 @@ def messages(db, data, media_folder, timezone_offset, filter_date, filter_chat,
|
|||||||
FROM ZWAMESSAGE
|
FROM ZWAMESSAGE
|
||||||
WHERE ZSTANZAID LIKE '{message.reply}%'""")
|
WHERE ZSTANZAID LIKE '{message.reply}%'""")
|
||||||
quoted_content = cursor2.fetchone()
|
quoted_content = cursor2.fetchone()
|
||||||
message.quoted_data = quoted_content["ZTEXT"] or quoted_content
|
if quoted_content and "ZTEXT" in quoted_content:
|
||||||
|
message.quoted_data = quoted_content["ZTEXT"]
|
||||||
|
else:
|
||||||
|
message.quoted_data = None
|
||||||
if content["ZMESSAGETYPE"] == 15: # Sticker
|
if content["ZMESSAGETYPE"] == 15: # Sticker
|
||||||
message.sticker = True
|
message.sticker = True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user