From b1568878e7801ed648c818335ac2033a159dc910 Mon Sep 17 00:00:00 2001 From: mykola <44346582+mykola-mmm@users.noreply.github.com> Date: Wed, 15 Jan 2025 00:14:18 +0200 Subject: [PATCH] Fixed: updated get_chat_list_by_user_id method to return all user chats (including those moved to the folders) --- backend/open_webui/models/chats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/models/chats.py b/backend/open_webui/models/chats.py index 8e721da78..73ff6c102 100644 --- a/backend/open_webui/models/chats.py +++ b/backend/open_webui/models/chats.py @@ -393,7 +393,7 @@ class ChatTable: limit: int = 50, ) -> list[ChatModel]: with get_db() as db: - query = db.query(Chat).filter_by(user_id=user_id).filter_by(folder_id=None) + query = db.query(Chat).filter_by(user_id=user_id) if not include_archived: query = query.filter_by(archived=False)