fix(report): Use simplified ReportOrchestrator startBugReport function.
This commit is contained in:
parent
ad47d1945d
commit
e3353da7ac
|
@ -463,12 +463,7 @@ internal abstract class NavigationActivity : BaseActivity() {
|
||||||
when (type) {
|
when (type) {
|
||||||
Type.SIGNOUT -> onSignOutSelected()
|
Type.SIGNOUT -> onSignOutSelected()
|
||||||
Type.CONTACTS -> startContactsLauncher.launch(Unit)
|
Type.CONTACTS -> startContactsLauncher.launch(Unit)
|
||||||
Type.REPORT_BUGS -> reportOrchestrator.startBugReport(
|
Type.REPORT_BUGS -> lifecycleScope.launch { reportOrchestrator.startBugReport() }
|
||||||
BugReportInput(
|
|
||||||
email = requireNotNull(userManager.requireCurrentUser().addresses.primary).email.s,
|
|
||||||
username = userManager.requireCurrentUser().name.s
|
|
||||||
)
|
|
||||||
)
|
|
||||||
Type.SETTINGS -> startSettingsLauncher.launch(
|
Type.SETTINGS -> startSettingsLauncher.launch(
|
||||||
StartSettings.Input(currentMailboxLocation, currentLabelId)
|
StartSettings.Input(currentMailboxLocation, currentLabelId)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue