From bf993c53029f15aaf6ecad419c3d92b177cb682d Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Sun, 9 Feb 2025 12:47:35 +0800 Subject: [PATCH] Change the column to determine if the chat should be filtered (#112) --- Whatsapp_Chat_Exporter/utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Whatsapp_Chat_Exporter/utility.py b/Whatsapp_Chat_Exporter/utility.py index d7de1a4..0a3c7f9 100644 --- a/Whatsapp_Chat_Exporter/utility.py +++ b/Whatsapp_Chat_Exporter/utility.py @@ -221,7 +221,7 @@ def get_file_name(contact: str, chat: ChatStore): def get_cond_for_empty(enable, jid_field: str, broadcast_field: str): - return f"AND (chat.sort_timestamp IS NOT NULL OR {jid_field}='status@broadcast' OR {broadcast_field}>0)" if enable else "" + return f"AND (chat.hidden=0 OR {jid_field}='status@broadcast' OR {broadcast_field}>0)" if enable else "" def get_chat_condition(filter, include, columns, jid=None, platform=None):