MessageListHeaderViewModel

constructor(cid: String, chatClient: ChatClient = ChatClient.instance(), clientState: ClientState = chatClient.clientState, messageId: String? = null)

Parameters

cid

The CID of the current channel.

chatClient

An instance of the low level chat client.

clientState

Client state of SDK that contains information such as the current user and connection state. such as the current user, connection state...

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.