You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-16 22:01:54 +03:00
When joining from room directory, use auto_join
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user