mirror of https://github.com/vector-im/riot-web
When joining from room directory, use auto_join
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
1c7af38d83
commit
9e7a70b9d5
|
@ -373,7 +373,10 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
showRoom: function(room, room_alias) {
|
showRoom: function(room, room_alias) {
|
||||||
this.props.onFinished();
|
this.props.onFinished();
|
||||||
const payload = {action: 'view_room'};
|
const payload = {
|
||||||
|
action: 'view_room',
|
||||||
|
auto_join: true,
|
||||||
|
};
|
||||||
if (room) {
|
if (room) {
|
||||||
// Don't let the user view a room they won't be able to either
|
// Don't let the user view a room they won't be able to either
|
||||||
// peek or join: fail earlier so they don't have to click back
|
// peek or join: fail earlier so they don't have to click back
|
||||||
|
|
Loading…
Reference in New Issue