个人资料卡的一些修改

This commit is contained in:
CrescentLeaf
2025-12-13 18:17:27 +08:00
parent 8fbf84d5dc
commit ae0e7fee95
3 changed files with 47 additions and 33 deletions

View File

@@ -1,6 +1,7 @@
import { LoaderFunctionArgs } from "react-router"
import getClient from "../../getClient"
import { Chat } from "lingchair-client-protocol"
import ClientCache from "../../ClientCache"
export default async function UserOrChatInfoDialogLoader({ params, request }: LoaderFunctionArgs) {
const searchParams = new URL(request.url).searchParams
@@ -16,6 +17,7 @@ export default async function UserOrChatInfoDialogLoader({ params, request }: Lo
id = await chat.getTheOtherUserIdOrThrow()
return {
mySelf: await ClientCache.getMySelf(),
chat,
id,
}