Don't wrongly show non-space invites in the space panel

This commit is contained in:
Michael Telatynski 2022-04-11 11:32:39 +01:00
parent 53c7cec55d
commit 51c0ff7b7a
1 changed files with 2 additions and 2 deletions

View File

@ -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()