mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-17 04:20:00 +03:00
Cleanup
This commit is contained in:
parent
38b40efac3
commit
f073342954
1 changed files with 0 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue