Skip to content
Open
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
9 changes: 5 additions & 4 deletions Riot/Modules/Home/AllChats/AllChatsCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,11 @@ class AllChatsCoordinator: NSObject, SplitViewMasterCoordinatorProtocol {
self.showInviteFriends(from: self.avatarMenuButton)
})
}

subMenuActions.append(UIAction(title: VectorL10n.sideMenuActionFeedback, image: UIImage(systemName: "questionmark.circle")) { [weak self] action in
self?.showBugReport()
})
if BuildSettings.allowBugReportingAndFeedbackManually {
subMenuActions.append(UIAction(title: VectorL10n.sideMenuActionFeedback, image: UIImage(systemName: "questionmark.circle")) { [weak self] action in
self?.showBugReport()
})
}

actions.append(UIMenu(title: "", options: .displayInline, children: subMenuActions))
actions.append(UIMenu(title: "", options: .displayInline, children: [
Expand Down
2 changes: 1 addition & 1 deletion Riot/Modules/Settings/SettingsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ - (void)updateSections
}
[sectionAdvanced addRowWithTag:ADVANCED_MARK_ALL_AS_READ_INDEX];
[sectionAdvanced addRowWithTag:ADVANCED_CLEAR_CACHE_INDEX];
if (BuildSettings.settingsScreenAllowBugReportingManually)
if (BuildSettings.allowBugReportingAndFeedbackManually)
{
[sectionAdvanced addRowWithTag:ADVANCED_REPORT_BUG_INDEX];
}
Expand Down
7 changes: 5 additions & 2 deletions Riot/Modules/SideMenu/SideMenuViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,13 @@ final class SideMenuViewModel: SideMenuViewModelType {
}

sideMenuItems += [
.settings,
.feedback
.settings
]

if BuildSettings.allowBugReportingAndFeedbackManually {
sideMenuItems += [.feedback]
}

// Hide app version
let appVersion: String? = nil

Expand Down
1 change: 1 addition & 0 deletions changelog.d/7102.change
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add BuildSetting to hide feedback in the side-menu