From f073342954afae0a66d221268be7ef8bd98bd6bc Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Fri, 13 Dec 2019 15:32:57 +0100 Subject: [PATCH] Cleanup --- .../vector/matrix/android/internal/network/RetrofitExtensions.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/network/RetrofitExtensions.kt b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/network/RetrofitExtensions.kt index 68989940c1..2018868059 100644 --- a/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/network/RetrofitExtensions.kt +++ b/matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/network/RetrofitExtensions.kt @@ -103,7 +103,6 @@ private fun toFailure(errorBody: ResponseBody?, httpCode: Int): Failure { EventBus.getDefault().post(GlobalError.ConsentNotGivenError(matrixError.consentUri)) } else if (httpCode == HttpURLConnection.HTTP_UNAUTHORIZED /* 401 */ && matrixError.code == MatrixError.M_UNKNOWN_TOKEN) { - // TODO Check that this is ok during the login flow // Also send this error to the bus, for a global management EventBus.getDefault().post(GlobalError.InvalidToken(matrixError.isSoftLogout)) }