scrollToBottom

fun scrollToBottom(messageLimit: Int = messageListController.messageLimit, scrollToBottom: () -> Unit)

When the user clicks the scroll to bottom button we need to take the user to the bottom of the newest messages. If the messages are not loaded we need to load them first and then scroll to the bottom of the list.

Parameters

messageLimit

The limit of messages to load when loading newest messages.

scrollToBottom

The handler that notifies when the data has been loaded to scroll to the bottom.