Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 1b355e1

Browse files
authored
Merge pull request #1391 from matrix-org/dbkr/fix_slash_join
Make /join join again
2 parents c814f02 + f3a4856 commit 1b355e1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/components/structures/MatrixChat.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,6 @@ module.exports = React.createClass({
672672
page_type: PageTypes.RoomView,
673673
thirdPartyInvite: roomInfo.third_party_invite,
674674
roomOobData: roomInfo.oob_data,
675-
autoJoin: roomInfo.auto_join,
676675
};
677676

678677
if (roomInfo.room_alias) {

src/stores/RoomViewStore.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ class RoomViewStore extends Store {
132132
}
133133

134134
this._setState(newState);
135+
136+
if (payload.auto_join) {
137+
this._joinRoom(payload);
138+
}
135139
} else if (payload.room_alias) {
136140
// Resolve the alias and then do a second dispatch with the room ID acquired
137141
this._setState({
@@ -151,6 +155,7 @@ class RoomViewStore extends Store {
151155
event_id: payload.event_id,
152156
highlighted: payload.highlighted,
153157
room_alias: payload.room_alias,
158+
auto_join: payload.auto_join,
154159
oob_data: payload.oob_data,
155160
});
156161
}, (err) => {

0 commit comments

Comments
 (0)