Skip to content

Commit 8450e46

Browse files
committed
Removed unnecesary loading of chats
1 parent 8e3d465 commit 8450e46

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/custom_widgets/chat_widget.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,6 @@ def duplicate_chat(self, chat_name:str):
462462
new_chat_id = window.generate_uuid()
463463
new_chat = self.prepend_chat(new_chat_name, new_chat_id)
464464
window.sql_instance.duplicate_chat(old_chat_window, new_chat)
465-
threading.Thread(target=new_chat.load_chat_messages).start()
466465

467466
def on_chat_imported(self, file_dialog, result):
468467
file = file_dialog.open_finish(result)
@@ -472,7 +471,6 @@ def on_chat_imported(self, file_dialog, result):
472471
file.copy(Gio.File.new_for_path(os.path.join(cache_dir, 'import.db')), Gio.FileCopyFlags.OVERWRITE, None, None, None, None)
473472
for chat in window.sql_instance.import_chat(os.path.join(cache_dir, 'import.db'), [tab.chat_window.get_name() for tab in self.tab_list]):
474473
new_chat = self.prepend_chat(chat[1], chat[0])
475-
threading.Thread(target=new_chat.load_chat_messages).start()
476474
window.show_toast(_("Chat imported successfully"), window.main_overlay)
477475

478476
def import_chat(self):

0 commit comments

Comments
 (0)