Feature/bca/room caps restricted#3663
Conversation
bmarty
left a comment
There was a problem hiding this comment.
Nice work.
I cannot test on matrix.org yet AFAIU.
Some remark in the mean time.
| val status: RoomVersionStatus | ||
| ) | ||
|
|
||
| @JsonClass(generateAdapter = true) |
| val defaultRoomVersion: String, | ||
| val supportedVersion: List<RoomVersionInfo> | ||
| val supportedVersion: List<RoomVersionInfo>, | ||
| val capabilities: Map<String, RoomCapabilitySupport>? |
| return info.preferred == byRoomVersion || info.support.contains(byRoomVersion) | ||
| } | ||
|
|
||
| fun versionOverrideForFeature(feature: String) : String? { |
There was a problem hiding this comment.
Can you add some doc for this public APIs?
|
|
||
| suspend fun setJoinRulePublic() | ||
| suspend fun setJoinRuleInviteOnly() | ||
| suspend fun setJoinRuleRestricted(allowList: List<String>) |
There was a problem hiding this comment.
These 3 fun should be moved to StateService and documented please.
There was a problem hiding this comment.
Initially it was in state service, but the join restricted is doing more than just state, it is also computing the via parameters. It feels strange to inject he viaParameterFinder in state event as it requires roomGetter.
I have put it back in StateService
| import org.matrix.android.sdk.api.session.room.model.RoomJoinRulesAllowEntry | ||
| import org.matrix.android.sdk.api.session.room.model.RoomJoinRulesContent | ||
|
|
||
| interface RoomFeaturePreset { |
There was a problem hiding this comment.
Interface and class must be moved to internal package and declared internal.
There was a problem hiding this comment.
It's public, used in CreateSpaceViewModelTask for example
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content"> | ||
|
|
||
| <com.google.android.material.appbar.CollapsingToolbarLayout |
There was a problem hiding this comment.
yes it's snapping but no animation
| <string name="room_create_member_of_space_name_can_join">Members of Space %s can find, preview and join.</string> | ||
| <string name="allow_space_member_to_find_and_access">Allow space members to find and access.</string> | ||
| <string name="spaces_which_can_access">Spaces which can access</string> | ||
| <string name="decide_which_spaces_can_access">Decide which spaces can access this room. If a space is selected its members will be able to find and join Room name.</string> |
There was a problem hiding this comment.
Too many spaces in room. If and find and
|
|
||
| <string name="error_failed_to_join_room">Sorry, an error occurred while trying to join: %s</string> | ||
|
|
||
| <string name="upgrade_room_for_restricted">Anyone in %s will be able to find and join this room - no need to manually invite everyone. You’ll be able to change this in room settings anytime.</string> |
| <string name="error_failed_to_join_room">Sorry, an error occurred while trying to join: %s</string> | ||
|
|
||
| <string name="upgrade_room_for_restricted">Anyone in %s will be able to find and join this room - no need to manually invite everyone. You’ll be able to change this in room settings anytime.</string> | ||
| <string name="upgrade_room_for_restricted_no_param">Anyone in a parent space will be able to find and join this room - no need to manually invite everyone. You’ll be able to change this in room settings anytime.</string> |
| <string name="upgrade_room_for_restricted">Anyone in %s will be able to find and join this room - no need to manually invite everyone. You’ll be able to change this in room settings anytime.</string> | ||
| <string name="upgrade_room_for_restricted_no_param">Anyone in a parent space will be able to find and join this room - no need to manually invite everyone. You’ll be able to change this in room settings anytime.</string> | ||
|
|
||
| <string name="upgrade_room_for_restricted_note">Please note upgrading will make a new version of the room. All current messages will stay in this archived room.</string> |
|
|
||
| <Button | ||
| android:id="@+id/cancelButton" | ||
| style="@style/Widget.Vector.Button.Outlined" |
There was a problem hiding this comment.
Style "Widget.Vector.Button.Text"
eae2f73 to
85d3941
Compare
85d3941 to
c475418
Compare
c475418 to
aaa9c7e
Compare


Fixes #3509
Fixes #3665
Fixes #3508
New setting screen that allow to use the new restricted access rule

If the selected room is using a version that do not support restricted, a button will be displayed to migrate the room first (shown only if the server supports the restricted join rule as per Room caps MSC