mirror of
https://github.com/element-hq/element-android
synced 2024-11-25 02:45:37 +03:00
Do not show invitation in the filtered room list
This commit is contained in:
parent
d48ae967bd
commit
21ba72e5e7
1 changed files with 3 additions and 1 deletions
|
@ -18,6 +18,7 @@ package im.vector.riotx.features.home.room.list
|
|||
|
||||
import androidx.annotation.StringRes
|
||||
import com.airbnb.epoxy.TypedEpoxyController
|
||||
import im.vector.matrix.android.api.session.room.model.Membership
|
||||
import im.vector.matrix.android.api.session.room.model.RoomSummary
|
||||
import im.vector.riotx.core.resources.StringProvider
|
||||
import im.vector.riotx.features.home.room.filtered.FilteredRoomFooterItem
|
||||
|
@ -62,7 +63,8 @@ class RoomSummaryController @Inject constructor(private val stringProvider: Stri
|
|||
|
||||
roomListNameFilter.filter = viewState.roomFilter
|
||||
|
||||
val filteredSummaries = summaries.filter { roomListNameFilter.test(it) }
|
||||
val filteredSummaries = summaries
|
||||
.filter { it.membership == Membership.JOIN && roomListNameFilter.test(it) }
|
||||
|
||||
buildRoomModels(filteredSummaries,
|
||||
viewState.joiningRoomsIds,
|
||||
|
|
Loading…
Reference in a new issue