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:
commit
2c81e7ea08
|
@ -0,0 +1 @@
|
|||
At the very first room search after opening the app sometimes no results are displayed
|
|
@ -54,10 +54,6 @@ class SearchResultController @Inject constructor(
|
|||
fun loadMore()
|
||||
}
|
||||
|
||||
init {
|
||||
setData(null)
|
||||
}
|
||||
|
||||
override fun buildModels(data: SearchViewState?) {
|
||||
data ?: return
|
||||
|
||||
|
|
|
@ -63,10 +63,6 @@ class RoomAliasController @Inject constructor(
|
|||
|
||||
var callback: Callback? = null
|
||||
|
||||
init {
|
||||
setData(null)
|
||||
}
|
||||
|
||||
override fun buildModels(data: RoomAliasViewState?) {
|
||||
data ?: return
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -108,10 +108,6 @@ class RoomPermissionsController @Inject constructor(
|
|||
EditablePermission.UpgradeTheRoom()
|
||||
)
|
||||
|
||||
init {
|
||||
setData(null)
|
||||
}
|
||||
|
||||
override fun buildModels(data: RoomPermissionsViewState?) {
|
||||
val host = this
|
||||
buildProfileSection(
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue