mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-23 07:40:20 +01:00
don't leave DMs when leaving all rooms in space (#5720)
This commit is contained in:
parent
45104f8cec
commit
eab3e5aefa
1
changelog.d/5609.bugfix
Normal file
1
changelog.d/5609.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Choosing "leave all rooms and spaces" while leaving Space won't cause leaving DMs in this Space anymore
|
@ -35,6 +35,7 @@ import kotlinx.coroutines.flow.launchIn
|
||||
import kotlinx.coroutines.flow.onEach
|
||||
import kotlinx.coroutines.launch
|
||||
import org.matrix.android.sdk.api.query.ActiveSpaceFilter
|
||||
import org.matrix.android.sdk.api.query.RoomCategoryFilter
|
||||
import org.matrix.android.sdk.api.session.Session
|
||||
import org.matrix.android.sdk.api.session.events.model.EventType
|
||||
import org.matrix.android.sdk.api.session.room.model.Membership
|
||||
@ -140,6 +141,7 @@ class SpaceMenuViewModel @AssistedInject constructor(
|
||||
excludeType = null
|
||||
activeSpaceFilter = ActiveSpaceFilter.ActiveSpace(initialState.spaceId)
|
||||
memberships = listOf(Membership.JOIN)
|
||||
roomCategoryFilter = RoomCategoryFilter.ONLY_ROOMS
|
||||
}
|
||||
).forEach {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user