loadMore

abstract fun loadMore()

Notifies server that we need to load more messages. This expects that the instance provided by parent ChatThreadHandler has the most up-to-date data. Be warned that calling this method on a thread that has not been updated has undefined consequences. It can result, for example, in message duplication.

Please note that you should always call ChatThreadHandler.get with a callback for this method to work. In any other case, this results in undefined behavior.

Call only if the client reaches the top (or bottom, depending on the view you've chosen) of the loaded messages after having them loaded by ChatThreadHandler.get.

If ChatThreadHandler.get returns repeatedly empty list of messages, the thread has probably no more messages left to load, therefore calling this method makes no sense as it will again update the thread with an empty list.