diff --git a/client/ui/App.tsx b/client/ui/App.tsx index cd2f7ae..af66730 100644 --- a/client/ui/App.tsx +++ b/client/ui/App.tsx @@ -145,6 +145,7 @@ export default function App() { myProfileDialogRef={myProfileDialogRef as any} user={myUserProfileCache} /> diff --git a/client/ui/AppMobile.tsx b/client/ui/AppMobile.tsx index bff55d8..2a843ae 100644 --- a/client/ui/AppMobile.tsx +++ b/client/ui/AppMobile.tsx @@ -169,6 +169,7 @@ export default function AppMobile() { myProfileDialogRef={myProfileDialogRef as any} user={myUserProfileCache} /> diff --git a/client/ui/dialog/UserProfileDialog.tsx b/client/ui/dialog/UserProfileDialog.tsx index 2644347..0fc64b0 100644 --- a/client/ui/dialog/UserProfileDialog.tsx +++ b/client/ui/dialog/UserProfileDialog.tsx @@ -11,12 +11,14 @@ import User from "../../api/client_data/User.ts" interface Refs { userProfileDialogRef: React.MutableRefObject + chatInfoDialogRef: React.MutableRefObject openChatFragment: (id: string) => void user: User } export default function UserProfileDialog({ userProfileDialogRef, + chatInfoDialogRef, openChatFragment, user }: Refs) { @@ -51,6 +53,7 @@ export default function UserProfileDialog({ openChatFragment(re.data!.chat_id as string) userProfileDialogRef.current!.open = false + chatInfoDialogRef.current!.open = false }}>对话