mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Replace a debugging visibility check with the real condition. (#4982)
This commit is contained in:
@@ -95,7 +95,7 @@ struct SpaceScreen: View {
|
||||
// controller attempts to anchor itself to the button that is no longer visible.
|
||||
ToolbarItem(placement: .primaryAction) {
|
||||
Menu {
|
||||
if true {
|
||||
if context.viewState.canEditChildren {
|
||||
Section {
|
||||
Button { context.send(viewAction: .addExistingRooms) } label: {
|
||||
Label(L10n.actionAddExistingRooms, icon: \.room)
|
||||
|
||||
Reference in New Issue
Block a user