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

This commit is contained in:
G30 authored and GitHub committed 2026-07-26 18:43:34 -04:00
1 parent 71f8b6d5b4
commit db92ef292f
4 files changed
+38 -2

No files matched your search

+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: