You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Guard against invalid room object on join
This commit is contained in:
@@ -877,13 +877,12 @@ module.exports = React.createClass({
|
|||||||
// If the user is a ROU, allow them to transition to a PWLU
|
// If the user is a ROU, allow them to transition to a PWLU
|
||||||
if (cli && cli.isGuest()) {
|
if (cli && cli.isGuest()) {
|
||||||
// Join this room once the user has registered and logged in
|
// Join this room once the user has registered and logged in
|
||||||
const signUrl = this.props.thirdPartyInvite ?
|
// (If we failed to peek, we may not have a valid room object.)
|
||||||
this.props.thirdPartyInvite.inviteSignUrl : undefined;
|
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: 'do_after_sync_prepared',
|
action: 'do_after_sync_prepared',
|
||||||
deferred_action: {
|
deferred_action: {
|
||||||
action: 'view_room',
|
action: 'view_room',
|
||||||
room_id: this.state.room.roomId,
|
room_id: this.state.room ? this.state.room.roomId : this.state.roomId,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user