mirror of https://github.com/vector-im/riot-web
Switch to new view_room
parent
a030e46c69
commit
d7504aeda5
|
@ -116,21 +116,16 @@ module.exports = React.createClass({
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
var payload = {
|
// It's not really possible to join Matrix rooms by ID because the HS has no way to know
|
||||||
|
// which servers to start querying. However, there's no other way to join rooms in
|
||||||
|
// this list without aliases at present, so if roomAlias isn't set here we'll rely
|
||||||
|
// on view_room falling back to using the ID
|
||||||
|
dis.dispatch({
|
||||||
oob_data: oob_data,
|
oob_data: oob_data,
|
||||||
};
|
action: 'view_room',
|
||||||
if (roomAlias) {
|
room_id: roomId,
|
||||||
payload.action = 'view_room_alias';
|
room_alias: roomAlias,
|
||||||
payload.room_alias = roomAlias;
|
});
|
||||||
} else {
|
|
||||||
// It's not really possible to join Matrix rooms by ID because the HS has no way to know
|
|
||||||
// which servers to start querying. However, there's no other way to join rooms in
|
|
||||||
// this list without aliases at present.
|
|
||||||
payload.action = 'view_room';
|
|
||||||
payload.room_id = roomId;
|
|
||||||
}
|
|
||||||
|
|
||||||
dis.dispatch(payload);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
getRows: function(filter) {
|
getRows: function(filter) {
|
||||||
|
|
Loading…
Reference in New Issue