mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
More space tweaks (#4584)
* Remove the room count everywhere. * Remove the parent name from restricted spaces.
This commit is contained in:
@@ -75,8 +75,8 @@ struct JoinRoomScreenViewState: BindableState {
|
||||
}
|
||||
|
||||
var subtitle: String? {
|
||||
if roomDetails?.isSpace == true, let spaceVisibilityTitle, let childrenCount = roomDetails?.childrenCount {
|
||||
return L10n.screenSpaceListDetails(spaceVisibilityTitle, L10n.commonRooms(childrenCount))
|
||||
if roomDetails?.isSpace == true, let spaceVisibilityTitle {
|
||||
return spaceVisibilityTitle
|
||||
} else {
|
||||
switch mode {
|
||||
case .invited(isDM: true):
|
||||
@@ -98,7 +98,7 @@ struct JoinRoomScreenViewState: BindableState {
|
||||
return switch roomDetails?.spaceVisibility {
|
||||
case .public: \.public
|
||||
case .private: \.lock
|
||||
case .restricted(let parentName): \.space
|
||||
case .restricted: \.space
|
||||
case .none: \.lock
|
||||
}
|
||||
}
|
||||
@@ -107,7 +107,7 @@ struct JoinRoomScreenViewState: BindableState {
|
||||
switch roomDetails?.spaceVisibility {
|
||||
case .public: L10n.commonPublicSpace
|
||||
case .private: L10n.commonPrivateSpace
|
||||
case .restricted(let parentName): L10n.screenSpaceListParentSpace(parentName)
|
||||
case .restricted: L10n.commonSharedSpace
|
||||
case .none: L10n.commonPrivateSpace
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user