diff --git a/vector/src/gplay/java/im/vector/app/gplay/features/settings/troubleshoot/TestPushFromPushGateway.kt b/vector/src/gplay/java/im/vector/app/gplay/features/settings/troubleshoot/TestPushFromPushGateway.kt index 6cf7d68561..6ce944d214 100644 --- a/vector/src/gplay/java/im/vector/app/gplay/features/settings/troubleshoot/TestPushFromPushGateway.kt +++ b/vector/src/gplay/java/im/vector/app/gplay/features/settings/troubleshoot/TestPushFromPushGateway.kt @@ -53,7 +53,7 @@ class TestPushFromPushGateway @Inject constructor(private val context: AppCompat status = TestStatus.RUNNING }, { - description = if (failure is PushGatewayFailure.PusherRejected) { + description = if (it is PushGatewayFailure.PusherRejected) { stringProvider.getString(R.string.settings_troubleshoot_test_push_loop_failed) } else { errorFormatter.toHumanReadable(it) @@ -70,6 +70,6 @@ class TestPushFromPushGateway @Inject constructor(private val context: AppCompat } override fun cancel() { - job?.cancel() + action?.cancel() } }