pr suggestions

This commit is contained in:
Mauro Romito
2025-10-30 13:29:27 +01:00
committed by Mauro
parent b4f3e0c860
commit 401ff49882
6 changed files with 17 additions and 11 deletions
@@ -74,8 +74,9 @@ struct SpaceScreen: View {
}
}
if context.viewState.isSpaceManagementEnabled {
Button { context.send(viewAction: .spaceSettings) } label: {
if context.viewState.isSpaceManagementEnabled,
let roomProxy = context.viewState.roomProxy {
Button { context.send(viewAction: .spaceSettings(roomProxy: roomProxy)) } label: {
Label(L10n.commonSettings, icon: \.settings)
}
}