MessageComposerController
constructor(channelCid: String, chatClient: ChatClient = ChatClient.instance(), mediaRecorder: StreamMediaRecorder, userLookupHandler: UserLookupHandler, fileToUri: (File) -> String, messageLimit: Int, maxAttachmentCount: Int = AttachmentConstants.MAX_ATTACHMENTS_COUNT, messageId: String? = null, isLinkPreviewEnabled: Boolean = false)
Parameters
channelCid
The CID of the channel we're chatting in.
chatClient
The client used to communicate to the API.
maxAttachmentCount
The maximum number of attachments that can be sent in a single message.
messageId
The id of a message we wish to scroll to in messages list. Used to control the number of channel queries executed on screen initialization.