Skip to main content

CreateChannel

CreateChannel is a set of features and UI components for sending friends and creating chat rooms, it needs to get the client property through useChatContext and cannot be used alone outside the Chat component.

Basic Usage

CreateChannel made up of a button and modal, the button part control modal display and hidden, and the modal show the function part of sending friend request and creating room. When you successfully create a channel room, the ChannelList will add it; This component does not need to pass any props.