Show conversation search results first

Fixes #2504

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-11-22 14:56:41 +01:00 committed by Marcel Hibbe (Rebase PR Action)
parent 086a0673b7
commit 14c3bd19b6

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)
}
}