ChatKit icon indicating copy to clipboard operation
ChatKit copied to clipboard

update onLoadMore in RecyclerScrollMoreListener

Open 24Lathiya opened this issue 6 years ago • 0 comments

int visibleThreshold = 5; if (!loading && (lastVisibleItemPosition + visibleThreshold) > totalItemCount) { currentPage++; loadMoreListener.onLoadMore(loadMoreListener.getMessagesCount(), totalItemCount); loading = true; }

should be

int visibleThreshold = 5; if (!loading && (lastVisibleItemPosition + visibleThreshold) > totalItemCount) { currentPage++; loadMoreListener.onLoadMore(currentPage, totalItemCount); loading = true; }

24Lathiya avatar Feb 14 '19 07:02 24Lathiya