LMMessageContext
Introduction
The LMMessageContext
provides the data and functions related to each individual conversation. By default this context is wrapped around each individual conversation. You can use this context to manage and interact with a single conversation.
Property | Type | Description | Optional |
---|---|---|---|
message | Conversation | The conversation message. | |
index | number | The index of the message. | |
deleteMessage | ZeroArgVoidReturns | Function to delete the message. | |
chatroomTopic | ZeroArgVoidReturns | Function to fetch the chatroom topic. | |
editMessageLocally | OneArgVoidReturns <Conversation> | Function to edit a message locally. | |
addReactionLocally | OneArgVoidReturns <EmojiData> | Function to add a reaction locally. | |
removeReactionLocally | ZeroArgVoidReturns | Function to remove a reaction locally. | |
addPollOptionLocally | OneArgVoidReturns <PollOptionNew> | Function to add a poll option locally. | |
updatePollOnSubmitLocally | OneArgVoidReturns <string[]> | Function to update a poll when submitted. |
Reference
For reference checkout this file