mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:26:09 -04:00
Fix the 'Go to room' button to use the correct room alias api
This commit is contained in:
parent
4add1c70e9
commit
fe3c5a2726
3 changed files with 31 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue