diff options
Diffstat (limited to 'webclient/components')
-rw-r--r-- | webclient/components/matrix/matrix-service.js | 9 |
1 files changed, 9 insertions, 0 deletions
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 |