LMMessageListContext
Introduction
The LMMessageListContext
provides the referance to complete conversations data of the loaded chatroom. You can access these to interact with the conversation list. By default all of the conversations are wrapped inside this context.
Property | Type | Description | Optional |
---|---|---|---|
conversations | Conversation[] | null | List of conversation messages. | |
getChatroomConversationsOnTopScroll | Function | Function to fetch conversations on top scroll. | ✔️ |
getChatroomConversationsOnBottomScroll | Function | Function to fetch conversations on bottom scroll. | ✔️ |
bottomReferenceDiv | MutableRefObject<HTMLDivElement \| null> | Reference to the bottom of the message list. | |
messageListContainerRef | MutableRefObject<HTMLDivElement \| null> | Reference to the message list container. | |
unBlockUserInDM | ZeroArgVoidReturns | Function to unblock a user in direct messages. | |
searchedConversationRef | MutableRefObject<HTMLDivElement \| null> | Reference to the searched conversation. | |
setChatroomTopic | React.Dispatch<Conversation | null> | Function to set the chatroom topic. | |
chatroomTopic | Conversation | null | The chatroom topic. | |
shouldScrollToBottom | MutableRefObject<boolean> | Determines if the chat should scroll to the bottom. |
Reference
For reference checkout this file