diff --git a/Whatsapp_Chat_Exporter/android_handler.py b/Whatsapp_Chat_Exporter/android_handler.py index 62b0665..0713232 100644 --- a/Whatsapp_Chat_Exporter/android_handler.py +++ b/Whatsapp_Chat_Exporter/android_handler.py @@ -817,9 +817,10 @@ def create_html( render_box, contact, w3css, - f"{safe_file_name}-{current_page + 1}.html", chat, - headline + headline, + next=f"{safe_file_name}-{current_page + 1}.html", + previous=f"{safe_file_name}-{current_page - 1}.html" if current_page > 1 else False ) render_box = [message] current_size = 0 @@ -838,9 +839,10 @@ def create_html( render_box, contact, w3css, - False, chat, - headline + headline, + False, + previous=f"{safe_file_name}-{current_page - 1}.html" ) else: output_file_name = f"{output_folder}/{safe_file_name}.html" @@ -851,9 +853,9 @@ def create_html( chat.get_messages(), contact, w3css, - False, chat, - headline + headline, + False ) if current % 10 == 0: print(f"Generating chats...({current}/{total_row_number})", end="\r") diff --git a/Whatsapp_Chat_Exporter/utility.py b/Whatsapp_Chat_Exporter/utility.py index 86ef9af..259c318 100644 --- a/Whatsapp_Chat_Exporter/utility.py +++ b/Whatsapp_Chat_Exporter/utility.py @@ -132,9 +132,10 @@ def rendering( msgs, contact, w3css, - next, chat, - headline + headline, + next=False, + previous=False ): if chat.their_avatar_thumb is None and chat.their_avatar is not None: their_avatar_thumb = chat.their_avatar @@ -153,6 +154,7 @@ def rendering( their_avatar_thumb=their_avatar_thumb, w3css=w3css, next=next, + previous=previous, status=chat.status, media_base=chat.media_base, headline=headline diff --git a/Whatsapp_Chat_Exporter/whatsapp.html b/Whatsapp_Chat_Exporter/whatsapp.html index 0de948f..892828f 100644 --- a/Whatsapp_Chat_Exporter/whatsapp.html +++ b/Whatsapp_Chat_Exporter/whatsapp.html @@ -271,6 +271,10 @@