feat(ui): show total archived chat count in ChatsModal title (#25872)

This commit is contained in:
G30
2026-06-17 02:57:27 +02:00
committed by GitHub
parent e031fadc35
commit dee07d8a30
5 changed files with 75 additions and 3 deletions
+13
View File
@@ -819,6 +819,19 @@ async def get_archived_session_user_chat_list(
)
############################
# GetArchivedChatsCount
############################
@router.get('/archived/count', response_model=int)
async def get_archived_session_user_chat_count(
user=Depends(get_verified_user),
db: AsyncSession = Depends(get_async_session),
):
return await Chats.count_archived_chats_by_user_id(user.id, db=db)
############################
# ArchiveAllChats
############################