mirror of
https://github.com/element-hq/element-android
synced 2024-11-24 10:25:35 +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.accountdata.RoomAccountDataTypes
|
||||
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.summary.RoomAggregateNotificationCount
|
||||
import org.matrix.android.sdk.api.session.space.SpaceOrderUtils
|
||||
|
@ -275,8 +276,7 @@ class SpaceListViewModel @AssistedInject constructor(@Assisted initialState: Spa
|
|||
val spaceSummaryQueryParams = roomSummaryQueryParams {
|
||||
memberships = listOf(Membership.JOIN, Membership.INVITE)
|
||||
displayName = QueryStringValue.IsNotEmpty
|
||||
excludeType = listOf(/**RoomType.MESSAGING,$*/
|
||||
null)
|
||||
includeType = listOf(RoomType.SPACE)
|
||||
}
|
||||
|
||||
val flowSession = session.flow()
|
||||
|
|
Loading…
Reference in a new issue