aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2017-12-09 13:27:15 +1100
committerDamien Zammit <damien@zamaudio.com>2017-12-09 13:27:15 +1100
commitc843db34a20ace090e3e3ed1a5587b5b7064c65c (patch)
tree5641cc21e0a420985a24772a5b63ab58bbb560c2
parent1a53f61998407013719fdabdcff4ead3e9715340 (diff)
downloadpurple-matrix-c843db34a20ace090e3e3ed1a5587b5b7064c65c.tar.gz
matrix-api: Fix join by alias or room-id
-rw-r--r--matrix-api.c4
1 files 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);