diff --git a/client/api/ApiDeclare.ts b/client/api/ApiDeclare.ts
index 7b59b92..761aeb0 100644
--- a/client/api/ApiDeclare.ts
+++ b/client/api/ApiDeclare.ts
@@ -16,7 +16,10 @@ export type CallMethod =
"User.getMyRecentChats" |
"Chat.getInfo" |
+
"Chat.getIdForPrivate" |
+ "Chat.getAnotherUserIdFromPrivate" |
+
"Chat.sendMessage" |
"Chat.getMessageHistory" |
diff --git a/client/ui/App.tsx b/client/ui/App.tsx
index d15416d..cd2f7ae 100644
--- a/client/ui/App.tsx
+++ b/client/ui/App.tsx
@@ -135,6 +135,12 @@ export default function App() {
loginInputAccountRef={loginInputAccountRef}
loginInputPasswordRef={loginInputPasswordRef} />
+
+
@@ -143,11 +149,6 @@ export default function App() {
openChatFragment={openChatFragment}
user={userInfo} />
-
-
diff --git a/client/ui/AppMobile.tsx b/client/ui/AppMobile.tsx
index f7bf11e..bff55d8 100644
--- a/client/ui/AppMobile.tsx
+++ b/client/ui/AppMobile.tsx
@@ -156,6 +156,15 @@ export default function AppMobile() {
loginInputAccountRef={loginInputAccountRef}
loginInputPasswordRef={loginInputPasswordRef} />
+ {
+ setCurrentChatId(id)
+ setIsShowChatFragment(true)
+ }}
+ chat={chatInfo} />
+
@@ -164,14 +173,6 @@ export default function AppMobile() {
openChatFragment={openChatFragment}
user={userInfo} />
- {
- setCurrentChatId(id)
- setIsShowChatFragment(true)
- }}
- chat={chatInfo} />
-
diff --git a/client/ui/dialog/ChatInfoDialog.tsx b/client/ui/dialog/ChatInfoDialog.tsx
index e83ae59..f3bdaa9 100644
--- a/client/ui/dialog/ChatInfoDialog.tsx
+++ b/client/ui/dialog/ChatInfoDialog.tsx
@@ -4,16 +4,18 @@ import useAsyncEffect from "../useAsyncEffect.ts"
import Client from "../../api/Client.ts"
import data from "../../Data.ts"
import { Dialog } from "mdui"
-import Avatar from "../Avatar.tsx";
+import Avatar from "../Avatar.tsx"
import { checkApiSuccessOrSncakbar } from "../snackbar.ts"
+import User from "../../api/client_data/User.ts"
interface Args extends React.HTMLAttributes {
chat: Chat
openChatFragment: (id: string) => void
chatInfoDialogRef: React.MutableRefObject