From c843db34a20ace090e3e3ed1a5587b5b7064c65c Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Sat, 9 Dec 2017 13:27:15 +1100 Subject: [PATCH] matrix-api: Fix join by alias or room-id --- matrix-api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix-api.c b/matrix-api.c index 2c22508..3bad678 100644 --- a/matrix-api.c +++ b/matrix-api.c @@ -774,9 +774,9 @@ MatrixApiRequestData *matrix_api_join_room(MatrixConnectionData *conn, MatrixApiRequestData *fetch_data; url = g_string_new(conn->homeserver); - g_string_append(url, "_matrix/client/r0/rooms/"); + g_string_append(url, "_matrix/client/r0/join/"); g_string_append(url, purple_url_encode(room)); - g_string_append(url, "/join?access_token="); + g_string_append(url, "?access_token="); g_string_append(url, purple_url_encode(conn->access_token)); purple_debug_info("matrixprpl", "joining %s\n", room);