scrollToBottom

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

Requests that the list scrolls to the bottom to the newest messages. If the newest messages are loaded will set scroll the list to the bottom. If they are not loaded will request the newest data and once loaded will scroll to the bottom of the list.

Parameters

messageLimit

The message count we wish to load from the API when loading new messages.

scrollToBottom

Notifies the ui to scroll to the bottom if the newest messages are in the list or have been loaded from the API.