Removed invites and feedback from the home menu (#2262)

This commit is contained in:
Mauro 2023-12-19 11:40:04 +01:00 committed by GitHub
parent 0f13f186e4
commit 334d55aeaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 15 deletions

View File

@ -33,7 +33,6 @@ enum HomeScreenViewModelAction {
enum HomeScreenViewUserMenuAction {
case settings
case feedback
case logout
}

View File

@ -128,8 +128,6 @@ class HomeScreenViewModel: HomeScreenViewModelType, HomeScreenViewModelProtocol
leaveRoom(roomId: roomIdentifier)
case .userMenu(let action):
switch action {
case .feedback:
actionsSubject.send(.presentFeedbackScreen)
case .settings:
actionsSubject.send(.presentSettingsScreen)
case .logout:

View File

@ -37,18 +37,6 @@ struct HomeScreenUserMenuButton: View {
}
}
.accessibilityIdentifier(A11yIdentifiers.homeScreen.settings)
}
Section {
MatrixUserShareLink(userID: context.viewState.userID) {
Label(L10n.actionInvite, iconAsset: Asset.Images.shareIos)
}
Button {
context.send(viewAction: .userMenu(action: .feedback))
} label: {
Label(L10n.commonReportAProblem, icon: \.chatProblem)
}
}
Section {
Button(role: .destructive) {
context.send(viewAction: .userMenu(action: .logout))
} label: {

1
changelog.d/2250.change Normal file
View File

@ -0,0 +1 @@
Removed redundant options from the home menu.