mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-10 14:24:05 +01:00
Merge pull request #3839 from nextcloud/bug-fix-chat-refresh-on-load
Fix onLoadMore not refreshing instantly
This commit is contained in:
commit
97cdfb1795
@ -3968,7 +3968,7 @@ class ChatActivity :
|
||||
}
|
||||
|
||||
override fun onLoadMore(page: Int, totalItemsCount: Int) {
|
||||
val calculatedPage = page / MESSAGE_PULL_LIMIT
|
||||
val calculatedPage = totalItemsCount / PAGE_SIZE
|
||||
if (calculatedPage > 0) {
|
||||
chatViewModel.refreshChatParams(
|
||||
setupFieldsForPullChatMessages(
|
||||
@ -4991,5 +4991,6 @@ class ChatActivity :
|
||||
private const val CURRENT_AUDIO_POSITION_KEY = "CURRENT_AUDIO_POSITION"
|
||||
private const val CURRENT_AUDIO_WAS_PLAYING_KEY = "CURRENT_AUDIO_PLAYING"
|
||||
private const val RESUME_AUDIO_TAG = "RESUME_AUDIO_TAG"
|
||||
private const val PAGE_SIZE = 50
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user