From fe3c5a27268d207e29be214c795da9bb756edb86 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 12 Aug 2014 17:17:10 +0100 Subject: Fix the 'Go to room' button to use the correct room alias api --- webclient/components/matrix/matrix-service.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'webclient/components') diff --git a/webclient/components/matrix/matrix-service.js b/webclient/components/matrix/matrix-service.js index bbfffe75e7..f98874dc74 100644 --- a/webclient/components/matrix/matrix-service.js +++ b/webclient/components/matrix/matrix-service.js @@ -111,6 +111,15 @@ angular.module('matrixService', []) }); }, + joinAlias: function(room_alias) { + var path = "/join/$room_alias"; + room_alias = encodeURIComponent(room_alias); + + path = path.replace("$room_alias", room_alias); + + return doRequest("PUT", path, undefined, {}); + }, + // Invite a user to a room invite: function(room_id, user_id) { // The REST path spec -- cgit 1.5.1