Remove JoinRule.Private from the codebase (#6129)

It shouldn't be in use, since it was never properly defined:

- The `Private` values coming from the SDK are considered to be `Invite` instead.
- Remove any existing `JoinRule.Private` usages in our code.
This commit is contained in:
Jorge Martin Espinosa
2026-02-03 19:27:22 +01:00
committed by GitHub
parent 4fe7463679
commit 5175bacb5e
12 changed files with 14 additions and 46 deletions

View File

@@ -38,7 +38,7 @@ class LeaveSpaceStateProvider : PreviewParameterProvider<LeaveSpaceState> {
),
aSelectableSpaceRoom(
spaceRoom = aSpaceRoom(
joinRule = JoinRule.Private,
joinRule = JoinRule.Invite,
),
isSelected = false,
),
@@ -56,7 +56,7 @@ class LeaveSpaceStateProvider : PreviewParameterProvider<LeaveSpaceState> {
),
aSelectableSpaceRoom(
spaceRoom = aSpaceRoom(
joinRule = JoinRule.Private,
joinRule = JoinRule.Invite,
),
isSelected = true,
),

View File

@@ -311,8 +311,8 @@ private fun SpaceItem(
Row(
verticalAlignment = Alignment.CenterVertically,
) {
if (room.joinRule == JoinRule.Private) {
// Picto for private
if (room.joinRule == JoinRule.Invite) {
// Picto for invite only
Icon(
modifier = Modifier
.size(16.dp)