feat(client): creat Group
This commit is contained in:
@@ -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: () => {},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user