Fix token_refresh in MatrixHTTPAPI
It sent the authorization token instead of the refresh token
This commit is contained in:
parent
cab2225077
commit
32d87394d9
@ -2318,7 +2318,7 @@ i_token_refresh(MatrixAPI *api,
|
|||||||
JsonBuilder *builder;
|
JsonBuilder *builder;
|
||||||
JsonNode *body;
|
JsonNode *body;
|
||||||
|
|
||||||
if (!refresh_token && !priv->token) {
|
if (!refresh_token && !priv->refresh_token) {
|
||||||
g_set_error(error,
|
g_set_error(error,
|
||||||
MATRIX_API_ERROR, MATRIX_API_ERROR_MISSING_TOKEN,
|
MATRIX_API_ERROR, MATRIX_API_ERROR_MISSING_TOKEN,
|
||||||
"No token available");
|
"No token available");
|
||||||
|
Loading…
Reference in New Issue
Block a user