From 32d87394d9f8c0878232a4541b1a1c52c566a639 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 22 Jan 2016 16:12:02 +0100 Subject: [PATCH] Fix token_refresh in MatrixHTTPAPI It sent the authorization token instead of the refresh token --- src/matrix-http-api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix-http-api.c b/src/matrix-http-api.c index 9727836..80ad628 100644 --- a/src/matrix-http-api.c +++ b/src/matrix-http-api.c @@ -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");