Skip to main content

LMChatReplyPrivatelyExtra

Overview​

LMChatReplyPrivatelyExtra is a data model used to provide additional context when replying privately to a message in LikeMinds Chat. It contains information about the source chatroom and the original conversation being replied to.

Properties​

VARIABLETYPEDESCRIPTION
sourceChatroomNameStringName of the source chatroom
sourceChatroomIdStringID of the source chatroom
sourceConversationConversationViewDataThe original conversation being replied to

Initialization​

let extra = LMChatReplyPrivatelyExtra(
sourceChatroomName: "General Chat",
sourceChatroomId: "12345",
sourceConversation: conversationViewData
)

Example​

This model is typically used as part of the ContentModel for LMChatMessageReplyPrivatelyPreview to display the context of a private reply.

let contentModel = LMChatMessageReplyPrivatelyPreview.ContentModel(replyPrivatelyExtra: extra)
replyPrivatelyPreview.setData(contentModel)