mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
[PR #8565] [MERGED] Fix: updated get_chat_list_by_user_id method to return all user cha… #9044
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/8565
Author: @mykola-mmm
Created: 1/14/2025
Status: ✅ Merged
Merged: 1/15/2025
Merged by: @tjbck
Base:
dev← Head:fix/show_user_chats_from_folders📝 Commits (1)
b156887Fixed: updated get_chat_list_by_user_id method to return all user chats (including those moved to the folders)📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/open_webui/models/chats.py(+1 -1)📄 Description
Implements https://github.com/open-webui/open-webui/discussions/7949 and https://github.com/open-webui/open-webui/issues/8553
When admin checks chats list created by users, the chats that have been moved to the folders are not included into the list
This PR modifies the get_chat_list_by_user_id method removing the filter (folder_id=None) from the very first query
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
This PR fixes an issue where the admin's chat list view was not showing chats that had been moved to folders. The change ensures that all chats are visible in the admin view, regardless of their folder status.
Fixed
folder_id=Nonefilter from theget_chat_list_by_user_idqueryAdditional Information
Screenshots or Videos
1st screenshot (before PR) admin account on the left, user account on the right.

Admin sees only single chat "test3"
2nd screenshot (with PR) admin account on the left, user account on the right.

Admin sees all 3 chats "test1", "test2" and "test3"
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.