mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 08:33:48 +01:00
Join room: open the room URL with the room alias in it
This commit is contained in:
parent
43772d0b15
commit
f8693c6b48
1 changed files with 2 additions and 6 deletions
|
@ -149,12 +149,8 @@ angular.module('RoomsController', ['matrixService', 'mFileInput', 'mFileUpload',
|
||||||
$scope.joinAlias = function(room_alias) {
|
$scope.joinAlias = function(room_alias) {
|
||||||
matrixService.joinAlias(room_alias).then(
|
matrixService.joinAlias(room_alias).then(
|
||||||
function(response) {
|
function(response) {
|
||||||
if (response.data.hasOwnProperty("room_id")) {
|
// Go to this room
|
||||||
$location.path("room/" + response.data.room_id);
|
$location.path("room/" + room_alias);
|
||||||
return;
|
|
||||||
} else {
|
|
||||||
// TODO (erikj): Do something here?
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
function(error) {
|
function(error) {
|
||||||
$scope.feedback = "Can't join room: " + error.data;
|
$scope.feedback = "Can't join room: " + error.data;
|
||||||
|
|
Loading…
Reference in a new issue