mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
Don't wrongly show non-space invites in the space panel
This commit is contained in:
parent
53c7cec55d
commit
51c0ff7b7a
1 changed files with 2 additions and 2 deletions
|
@ -54,6 +54,7 @@ import org.matrix.android.sdk.api.session.group.groupSummaryQueryParams
|
||||||
import org.matrix.android.sdk.api.session.room.RoomSortOrder
|
import org.matrix.android.sdk.api.session.room.RoomSortOrder
|
||||||
import org.matrix.android.sdk.api.session.room.accountdata.RoomAccountDataTypes
|
import org.matrix.android.sdk.api.session.room.accountdata.RoomAccountDataTypes
|
||||||
import org.matrix.android.sdk.api.session.room.model.Membership
|
import org.matrix.android.sdk.api.session.room.model.Membership
|
||||||
|
import org.matrix.android.sdk.api.session.room.model.RoomType
|
||||||
import org.matrix.android.sdk.api.session.room.roomSummaryQueryParams
|
import org.matrix.android.sdk.api.session.room.roomSummaryQueryParams
|
||||||
import org.matrix.android.sdk.api.session.room.summary.RoomAggregateNotificationCount
|
import org.matrix.android.sdk.api.session.room.summary.RoomAggregateNotificationCount
|
||||||
import org.matrix.android.sdk.api.session.space.SpaceOrderUtils
|
import org.matrix.android.sdk.api.session.space.SpaceOrderUtils
|
||||||
|
@ -275,8 +276,7 @@ class SpaceListViewModel @AssistedInject constructor(@Assisted initialState: Spa
|
||||||
val spaceSummaryQueryParams = roomSummaryQueryParams {
|
val spaceSummaryQueryParams = roomSummaryQueryParams {
|
||||||
memberships = listOf(Membership.JOIN, Membership.INVITE)
|
memberships = listOf(Membership.JOIN, Membership.INVITE)
|
||||||
displayName = QueryStringValue.IsNotEmpty
|
displayName = QueryStringValue.IsNotEmpty
|
||||||
excludeType = listOf(/**RoomType.MESSAGING,$*/
|
includeType = listOf(RoomType.SPACE)
|
||||||
null)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val flowSession = session.flow()
|
val flowSession = session.flow()
|
||||||
|
|
Loading…
Reference in a new issue