fix: unarchive chats moved into folders and refresh sidebar folders after menu moves (#27485)

This commit is contained in:
G30
2026-07-26 18:43:34 -04:00
committed by GitHub
parent 71f8b6d5b4
commit db92ef292f
4 changed files with 38 additions and 2 deletions
+5
View File
@@ -1885,6 +1885,11 @@ class ChatTable:
chat.updated_at = int(time.time())
chat.last_read_at = int(time.time())
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
# stays in the archived list and never appears in the folder.
chat.archived = False
await session.commit()
return ChatModel.model_validate(chat)
except Exception: