From e2684845b8cc8b09760bc480549801859cd97406 Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Sat, 7 Sep 2024 18:57:16 +0800 Subject: [PATCH] Bug fix on missing the last message when using --split #114 --- Whatsapp_Chat_Exporter/android_handler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Whatsapp_Chat_Exporter/android_handler.py b/Whatsapp_Chat_Exporter/android_handler.py index 32c2121..c2f9bc6 100644 --- a/Whatsapp_Chat_Exporter/android_handler.py +++ b/Whatsapp_Chat_Exporter/android_handler.py @@ -796,6 +796,7 @@ def create_html( current_size = 0 current_page += 1 else: + render_box.append(message) if message.key_id == last_msg: if current_page == 1: output_file_name = f"{output_folder}/{safe_file_name}.html" @@ -811,8 +812,6 @@ def create_html( False, chat ) - else: - render_box.append(message) else: output_file_name = f"{output_folder}/{safe_file_name}.html" rendering(