enh: disable drag event listener if parent dragged

This commit is contained in:
Timothy J. Baek
2024-10-16 22:04:21 -07:00
parent 9df9f4a990
commit 7b97d7a718
3 changed files with 31 additions and 8 deletions

View File

@@ -256,7 +256,7 @@ class ChatTable:
limit: int = 50,
) -> list[ChatModel]:
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).filter_by(parent_id=None)
if not include_archived:
query = query.filter_by(archived=False)