LMChatroomContext
Introduction
The LMChatroomContext
provides the data and functions related to chatrooms. You can use this context to manage and interact with the active chatroom, including its details and messages.
Property | Type | Description | Optional |
---|---|---|---|
conversationToReply | Conversation | null | The conversation that is being replied to. | ✔️ |
conversationToEdit | Conversation | null | The conversation that is being edited. | ✔️ |
setConversationToReply | React.Dispatch<Conversation | null> | Function to set the conversation being replied to. | |
setConversationToEdit | React.Dispatch<Conversation | null> | Function to set the conversation being edited. | |
chatroomDetails | ChatroomDetails | Details of the current chatroom. | |
setNewChatroom | React.Dispatch<ChatroomDetails | null> | Function to set a new chatroom. | |
canUserReplyPrivately | ReplyDmQueries | Permissions or conditions for replying privately. | |
searchedConversationId | number | null | The ID of the searched conversation. | ✔️ |
setSearchedConversationId | React.Dispatch<number | null> | Function to set the searched conversation ID. |
Reference
For reference checkout this file