Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct WidgetsHeaderView: View {
AnytypeText(model.spaceName, style: .uxTitle2Semibold)
.foregroundColor(.Text.primary)
.lineLimit(1)
if model.sharedSpace {
if model.sharedSpace, !model.isOneToOne {
AnytypeText(model.spaceMembers, style: .relation2Regular)
.foregroundColor(.Control.transparentSecondary)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ final class WidgetsHeaderViewModel: ObservableObject {
@Published var spaceUxType = ""
@Published var spaceMembers = ""
@Published var sharedSpace = false
@Published var isOneToOne = false
@Published var canEdit = false

init(spaceId: String, onSpaceSelected: @escaping () -> Void) {
Expand Down Expand Up @@ -51,6 +52,7 @@ final class WidgetsHeaderViewModel: ObservableObject {
spaceIcon = space.objectIconImage
spaceUxType = space.uxType.name
sharedSpace = space.isShared
isOneToOne = space.uxType.isOneToOne
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ struct SpaceSettingsView: View {
} label: {
AnytypeText(model.spaceName.isNotEmpty ? model.spaceName : Loc.untitled, style: .heading)
}
Spacer.fixedHeight(4)
AnytypeText(Loc.membersPlural(model.participantsCount), style: .caption1Regular).foregroundColor(.Text.secondary)
if !model.isOneToOne {
Spacer.fixedHeight(4)
AnytypeText(Loc.membersPlural(model.participantsCount), style: .caption1Regular).foregroundColor(.Text.secondary)
}
}
}
}
Expand Down