mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-03 04:27:35 +01:00
Cleanup
This commit is contained in:
parent
38b40efac3
commit
f073342954
@ -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))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user