mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 20:38:40 +00:00
Add default value for Failure.hasQuickFix
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ class NotificationTroubleshootTestDelegate(
|
||||
if (isSuccess) {
|
||||
NotificationTroubleshootTestState.Status.Success
|
||||
} else {
|
||||
NotificationTroubleshootTestState.Status.Failure(hasQuickFix)
|
||||
NotificationTroubleshootTestState.Status.Failure(hasQuickFix = hasQuickFix)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ data class NotificationTroubleshootTestState(
|
||||
data object WaitingForUser : Status
|
||||
data object Success : Status
|
||||
data class Failure(
|
||||
val hasQuickFix: Boolean,
|
||||
val hasQuickFix: Boolean = false,
|
||||
val isCritical: Boolean = true,
|
||||
val quickFixButtonString: String? = null,
|
||||
) : Status
|
||||
|
||||
Reference in New Issue
Block a user