Fix the 'Go to room' button to use the correct room alias api

This commit is contained in:
Erik Johnston 2014-08-12 17:17:10 +01:00
parent 4add1c70e9
commit fe3c5a2726
3 changed files with 31 additions and 2 deletions

View file

@ -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