When joining from room directory, use auto_join

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2019-06-23 22:39:04 +01:00
parent 1c7af38d83
commit 9e7a70b9d5
1 changed files with 4 additions and 1 deletions

View File

@ -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