Skip to main content

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.

PropertyTypeDescriptionOptional
conversationToReplyConversation | nullThe conversation that is being replied to.✔️
conversationToEditConversation | nullThe conversation that is being edited.✔️
setConversationToReplyReact.Dispatch<Conversation | null>Function to set the conversation being replied to.
setConversationToEditReact.Dispatch<Conversation | null>Function to set the conversation being edited.
chatroomDetailsChatroomDetailsDetails of the current chatroom.
setNewChatroomReact.Dispatch<ChatroomDetails | null>Function to set a new chatroom.
canUserReplyPrivatelyReplyDmQueriesPermissions or conditions for replying privately.
searchedConversationIdnumber | nullThe ID of the searched conversation.✔️
setSearchedConversationIdReact.Dispatch<number | null>Function to set the searched conversation ID.

Reference​

For reference checkout this file