diff --git a/client/api/ApiDeclare.ts b/client/api/ApiDeclare.ts index 42d9b20..7b59b92 100644 --- a/client/api/ApiDeclare.ts +++ b/client/api/ApiDeclare.ts @@ -16,6 +16,7 @@ export type CallMethod = "User.getMyRecentChats" | "Chat.getInfo" | + "Chat.getIdForPrivate" | "Chat.sendMessage" | "Chat.getMessageHistory" | @@ -24,7 +25,7 @@ export type CallMethod = export type ClientEvent = "Client.onMessage" -export const CallableMethodBeforeAuth = [ + export const CallableMethodBeforeAuth = [ "User.auth", "User.register", "User.login", diff --git a/server/api/ApiDeclare.ts b/server/api/ApiDeclare.ts index 90ebca7..2e818fb 100644 --- a/server/api/ApiDeclare.ts +++ b/server/api/ApiDeclare.ts @@ -16,6 +16,7 @@ export type CallMethod = "User.getMyRecentChats" | "Chat.getInfo" | + "Chat.getIdForPrivate" | "Chat.sendMessage" | "Chat.getMessageHistory" |