Browse Source

refac: pinned chat behaviour

Timothy J. Baek 6 tháng trước cách đây
mục cha
commit
24f149f686
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      backend/open_webui/apps/webui/models/chats.py

+ 1 - 1
backend/open_webui/apps/webui/models/chats.py

@@ -276,7 +276,7 @@ class ChatTable:
         limit: Optional[int] = None,
     ) -> list[ChatTitleIdResponse]:
         with get_db() as db:
-            query = db.query(Chat).filter_by(user_id=user_id)
+            query = db.query(Chat).filter_by(user_id=user_id, pinned=False)
             if not include_archived:
                 query = query.filter_by(archived=False)