mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-15 09:31:21 +00:00
fix: member's chat loses its pin when the shared folder owner moves it (#33342)
When the owner of a shared folder moved a chat a member created to another folder inside the shared folder, the chat lost the member's pin and dropped out of their Pinned list. The owner's move now keeps the member's pin, just as it already keeps the chat's unread status for them. Moving your own chat into a folder still unpins it, as before, so it shows up in that folder. Fixes #33341
This commit is contained in:
parent
b87e9358e5
commit
226dca18cd
1 changed files with 1 additions and 1 deletions
|
|
@ -2548,7 +2548,7 @@ class ChatTable:
|
|||
chat.folder_id = folder_id
|
||||
if chat.user_id == user_id:
|
||||
chat.last_read_at = int(time.time())
|
||||
chat.pinned = False
|
||||
chat.pinned = False
|
||||
if folder_id is not None:
|
||||
# Folder listings only show unarchived chats, so moving an archived
|
||||
# chat into a folder would otherwise have no visible effect: the chat
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue