SP3.1: Update room settings for Spaces element-ios#5231

- Changed the Room Settings screen according to the new design
- Implemented the room access flow
- Added room upgrade support
- Implemented the room suggestion screen
This commit is contained in:
Gil Eluard
2022-01-13 15:53:45 +01:00
parent 069e79e24e
commit 086afb1835
78 changed files with 3755 additions and 196 deletions
@@ -28,6 +28,7 @@ struct MatrixItemChooserListRow: View {
// MARK: Public
let avatar: AvatarInputProtocol
let type: MatrixListItemDataType
let displayName: String?
let detailText: String?
let isSelected: Bool
@@ -35,7 +36,11 @@ struct MatrixItemChooserListRow: View {
@ViewBuilder
var body: some View {
HStack{
AvatarImage(avatarData: avatar, size: .small)
if type == .space {
SpaceAvatarImage(avatarData: avatar, size: .small)
} else {
AvatarImage(avatarData: avatar, size: .small)
}
VStack(alignment: .leading) {
Text(displayName ?? "")
.foregroundColor(theme.colors.primaryContent)