feat(ui): show total archived chat count in ChatsModal title (#25872)
This commit is contained in:
@@ -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
|
||||
############################
|
||||
|
||||
Reference in New Issue
Block a user