Tweak some things, fix some things, delete some things

This commit is contained in:
Stefan Ceriu
2026-04-24 15:17:28 +03:00
parent 69822c8518
commit 0c91ae7869
2 changed files with 10 additions and 18 deletions
@@ -25,26 +25,21 @@ struct RoomCallControlsToolbar: ToolbarContent {
if viewState.isDirectOneToOneRoom {
ToolbarItem(placement: .primaryAction) {
Menu {
Button(action: { onCallTap(true) }) {
Label("Audio call", systemImage: "phone.fill")
Button {
onCallTap(true)
} label: {
Label(L10n.a11yStartVoiceCall, icon: \.voiceCallSolid)
}
.accessibilityIdentifier(A11yIdentifiers.roomScreen.startVoiceCall)
.disabled(!viewState.canJoinCall)
Button(action: { onCallTap(false) }) {
Label("Video call", systemImage: "video.fill")
Button {
onCallTap(false)
} label: {
Label(L10n.a11yStartVideoCall, icon: \.videoCallSolid)
}
.accessibilityIdentifier(A11yIdentifiers.roomScreen.startVideoCall)
.disabled(!viewState.canJoinCall)
} label: {
CompoundIcon(\.voiceCallSolid)
.frame(width: 28, height: 28)
.contentShape(Rectangle())
}
.menuIndicator(.hidden)
.buttonStyle(.plain)
.accessibilityLabel(L10n.a11yStartVoiceCall)
.accessibilityIdentifier(A11yIdentifiers.roomScreen.startVoiceCall)
.accessibilityLabel(L10n.a11yStartCall)
.disabled(!viewState.canJoinCall)
}
} else {
@@ -53,7 +48,6 @@ struct RoomCallControlsToolbar: ToolbarContent {
CompoundIcon(\.videoCallSolid)
}
.accessibilityLabel(L10n.a11yStartVideoCall)
.accessibilityIdentifier(A11yIdentifiers.roomScreen.startVideoCall)
.disabled(!viewState.canJoinCall)
}
}