fix(report): Use simplified ReportOrchestrator startBugReport function.

This commit is contained in:
Neil Marietta 2023-04-03 13:02:44 +02:00
parent ad47d1945d
commit e3353da7ac
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)
)