Merge branch 'chore/reportbug_tests' into 'develop'

fix(report): Use simplified ReportOrchestrator startBugReport function.

See merge request android/mail/proton-mail-android!1252
This commit is contained in:
Neil Marietta 2023-04-14 09:23:21 +00:00
commit 708fef2c67
1 changed files with 1 additions and 6 deletions

View File

@ -463,12 +463,7 @@ internal abstract class NavigationActivity : BaseActivity() {
when (type) {
Type.SIGNOUT -> onSignOutSelected()
Type.CONTACTS -> startContactsLauncher.launch(Unit)
Type.REPORT_BUGS -> reportOrchestrator.startBugReport(
BugReportInput(
email = requireNotNull(userManager.requireCurrentUser().addresses.primary).email.s,
username = userManager.requireCurrentUser().name.s
)
)
Type.REPORT_BUGS -> lifecycleScope.launch { reportOrchestrator.startBugReport() }
Type.SETTINGS -> startSettingsLauncher.launch(
StartSettings.Input(currentMailboxLocation, currentLabelId)
)