From 374831f01dedba8875c2ffadecbe792a8d5bde53 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Wed, 13 Jan 2016 08:20:40 +0100 Subject: [PATCH] Remove construct-only flag from MatrixHTTPAPI:base-url Documentation also added that all tokens get reset when changing it. --- src/matrix-http-api.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/matrix-http-api.c b/src/matrix-http-api.c index f33fc59..97ed8f7 100644 --- a/src/matrix-http-api.c +++ b/src/matrix-http-api.c @@ -291,12 +291,15 @@ matrix_http_api_class_init(MatrixHTTPAPIClass *klass) * The base URL to use for communication with the Matrix.org * server. If the URL doesn’t end with the correct API endpoint * (/_matrix/client/api/v1), it gets appended automatically. + * + * Changing the base URL automatically clears all authorization + * tokens. */ obj_properties[PROP_BASE_URL] = g_param_spec_string( "base-url", "Server's base URL", "Matrix.org home server to connect to.", NULL, - G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); + G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property(gobject_class, PROP_BASE_URL, obj_properties[PROP_BASE_URL]);