mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Merge pull request #7497 from bxdxnn/misc/allow-empty-desc
Allow empty problem description if the GitHub issue number is present for rageshakes
This commit is contained in:
+1
-1
@@ -86,7 +86,7 @@ class BugReportPresenter(
|
|||||||
fun handleEvent(event: BugReportEvents) {
|
fun handleEvent(event: BugReportEvents) {
|
||||||
when (event) {
|
when (event) {
|
||||||
BugReportEvents.SendBugReport -> {
|
BugReportEvents.SendBugReport -> {
|
||||||
if (formState.value.description.length < 10) {
|
if (formState.value.description.length < 10 && formState.value.ghIssueNumber == null) {
|
||||||
sendingAction.value = AsyncAction.Failure(BugReportFormError.DescriptionTooShort)
|
sendingAction.value = AsyncAction.Failure(BugReportFormError.DescriptionTooShort)
|
||||||
} else {
|
} else {
|
||||||
sendingAction.value = AsyncAction.Loading
|
sendingAction.value = AsyncAction.Loading
|
||||||
|
|||||||
Reference in New Issue
Block a user