Remove redundant state
This commit is contained in:
parent
defecb1b14
commit
6a9781f023
1 changed files with 1 additions and 5 deletions
|
@ -139,10 +139,6 @@ module.exports = React.createClass({
|
||||||
register_hs_url: null,
|
register_hs_url: null,
|
||||||
register_is_url: null,
|
register_is_url: null,
|
||||||
register_id_sid: null,
|
register_id_sid: null,
|
||||||
|
|
||||||
// Whether a DM should be created with welcomeUserId (prop) on registration
|
|
||||||
// see _onLoggedIn
|
|
||||||
shouldCreateWelcomeDm: true,
|
|
||||||
};
|
};
|
||||||
return s;
|
return s;
|
||||||
},
|
},
|
||||||
|
@ -894,7 +890,7 @@ module.exports = React.createClass({
|
||||||
MatrixClientPeg.get().getUserIdLocalpart()
|
MatrixClientPeg.get().getUserIdLocalpart()
|
||||||
);
|
);
|
||||||
|
|
||||||
if (this.props.config.welcomeUserId && this.state.shouldCreateWelcomeDm) {
|
if (this.props.config.welcomeUserId) {
|
||||||
createRoom({
|
createRoom({
|
||||||
dmUserId: this.props.config.welcomeUserId,
|
dmUserId: this.props.config.welcomeUserId,
|
||||||
andView: false,
|
andView: false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue