feat(client): creat Group

This commit is contained in:
CrescentLeaf
2026-01-25 00:29:45 +08:00
parent 3044cabcaa
commit 44ada8206d
4 changed files with 27 additions and 18 deletions

View File

@@ -2,12 +2,13 @@ import { Chat, User } from 'lingchair-client-protocol'
import * as React from 'react'
type AppState = {
openChatInfo: (chat: Chat | string) => void,
openUserInfo: (user: Chat | User | string) => void,
openEditMyProfile: () => void,
openAddFavouriteChat: () => void,
openChat: (chat: string | Chat, inDialog?: boolean) => void,
closeChat: () => void,
openChatInfo: (chat: Chat | string) => void
openUserInfo: (user: Chat | User | string) => void
openEditMyProfile: () => void
openAddFavouriteChat: () => void
openCreateGroup: () => void
openChat: (chat: string | Chat, inDialog?: boolean) => void
closeChat: () => void
}
const AppStateContext = React.createContext<AppState>({
@@ -15,6 +16,7 @@ const AppStateContext = React.createContext<AppState>({
openUserInfo: () => {},
openEditMyProfile: () => {},
openAddFavouriteChat: () => {},
openCreateGroup: () => {},
openChat: () => {},
closeChat: () => {},
})