Merge pull request #4601 from vector-im/feature/aris/search_no_data_displayed_4600

Fix issue 4600 that search results sometimes are not displayed properly
This commit is contained in:
Benoit Marty 2021-12-13 23:01:03 +01:00 committed by GitHub
commit 2c81e7ea08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 1 additions and 40 deletions

1
changelog.d/4600.misc Normal file
View File

@ -0,0 +1 @@
At the very first room search after opening the app sometimes no results are displayed

View File

@ -54,10 +54,6 @@ class SearchResultController @Inject constructor(
fun loadMore()
}
init {
setData(null)
}
override fun buildModels(data: SearchViewState?) {
data ?: return

View File

@ -63,10 +63,6 @@ class RoomAliasController @Inject constructor(
var callback: Callback? = null
init {
setData(null)
}
override fun buildModels(data: RoomAliasViewState?) {
data ?: return

View File

@ -42,10 +42,6 @@ class RoomBannedMemberListController @Inject constructor(
var callback: Callback? = null
init {
setData(null)
}
override fun buildModels(data: RoomBannedMemberListViewState?) {
val bannedList = data?.bannedMemberSummaries?.invoke() ?: return
val host = this

View File

@ -49,10 +49,6 @@ class RoomMemberListController @Inject constructor(
var callback: Callback? = null
init {
setData(null)
}
override fun buildModels(data: RoomMemberListViewState?) {
data ?: return
val host = this

View File

@ -34,10 +34,6 @@ class RoomNotificationSettingsController @Inject constructor() : TypedEpoxyContr
var callback: Callback? = null
init {
setData(null)
}
override fun buildModels(data: RoomNotificationSettingsViewState?) {
val host = this
data ?: return

View File

@ -108,10 +108,6 @@ class RoomPermissionsController @Inject constructor(
EditablePermission.UpgradeTheRoom()
)
init {
setData(null)
}
override fun buildModels(data: RoomPermissionsViewState?) {
val host = this
buildProfileSection(

View File

@ -56,10 +56,6 @@ class RoomSettingsController @Inject constructor(
var callback: Callback? = null
init {
setData(null)
}
override fun buildModels(data: RoomSettingsViewState?) {
val roomSummary = data?.roomSummary?.invoke() ?: return
val host = this

View File

@ -43,10 +43,6 @@ class UploadsFileController @Inject constructor(
private var idx = 0
init {
setData(null)
}
override fun buildModels(data: RoomUploadsViewState?) {
data ?: return
val host = this

View File

@ -54,10 +54,6 @@ class UploadsMediaController @Inject constructor(
private val itemSize = dimensionConverter.dpToPx(IMAGE_SIZE_DP)
init {
setData(null)
}
override fun buildModels(data: RoomUploadsViewState?) {
data ?: return
val host = this

View File

@ -50,10 +50,6 @@ class SpacePeopleListController @Inject constructor(
var listener: InteractionListener? = null
init {
setData(null)
}
override fun buildModels(data: RoomMemberListViewState?) {
val host = this
val memberSummaries = data?.roomMemberSummaries?.invoke()