Fix token_refresh in MatrixHTTPAPI

It sent the authorization token instead of the refresh token
This commit is contained in:
Gergely Polonkai 2016-01-22 16:12:02 +01:00
parent cab2225077
commit 32d87394d9

View File

@ -2318,7 +2318,7 @@ i_token_refresh(MatrixAPI *api,
JsonBuilder *builder;
JsonNode *body;
if (!refresh_token && !priv->token) {
if (!refresh_token && !priv->refresh_token) {
g_set_error(error,
MATRIX_API_ERROR, MATRIX_API_ERROR_MISSING_TOKEN,
"No token available");