Merge pull request #2589 from nextcloud/bugfix/2504/showConversationResultsFirst

Show conversation search results first
This commit is contained in:
Marcel Hibbe 2022-11-23 16:21:30 +01:00 committed by GitHub
commit 1c08889969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1325,7 +1325,8 @@ class ConversationsListController(bundle: Bundle) :
if (results.hasMore) {
adapterItems.add(LoadMoreResultsItem)
}
adapter!!.addItems(0, adapterItems)
// add unified search result at the end of the list
adapter!!.addItems(adapter!!.mainItemCount + adapter!!.scrollableHeaders.size, adapterItems)
binding.recyclerView.scrollToPosition(0)
}
}