Merge pull request #5695 from element-hq/feature/bma/bugReportForm

Ensure the form data are not lost when opening the log viewer.
This commit is contained in:
Benoit Marty 2025-11-07 11:13:30 +01:00 committed by GitHub
commit 80196c2703
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,7 +77,7 @@ class BugReportPresenter(
val sendingAction: MutableState<AsyncAction<Unit>> = remember {
mutableStateOf(AsyncAction.Uninitialized)
}
val formState: MutableState<BugReportFormState> = remember {
val formState: MutableState<BugReportFormState> = rememberSaveable {
mutableStateOf(BugReportFormState.Default)
}
val uploadListener = BugReporterUploadListener(sendingProgress, sendingAction)