When joining from room directory, use auto_join

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2019-06-23 22:39:04 +01:00
parent 1c7af38d83
commit 9e7a70b9d5

View file

@ -373,7 +373,10 @@ module.exports = React.createClass({
showRoom: function(room, room_alias) {
this.props.onFinished();
const payload = {action: 'view_room'};
const payload = {
action: 'view_room',
auto_join: true,
};
if (room) {
// 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