Remove redundant state

pull/21833/head
Luke Barnard 2017-06-02 11:41:09 +01:00
parent defecb1b14
commit 6a9781f023
1 changed files with 1 additions and 5 deletions

View File

@ -139,10 +139,6 @@ module.exports = React.createClass({
register_hs_url: null,
register_is_url: null,
register_id_sid: null,
// Whether a DM should be created with welcomeUserId (prop) on registration
// see _onLoggedIn
shouldCreateWelcomeDm: true,
};
return s;
},
@ -894,7 +890,7 @@ module.exports = React.createClass({
MatrixClientPeg.get().getUserIdLocalpart()
);
if (this.props.config.welcomeUserId && this.state.shouldCreateWelcomeDm) {
if (this.props.config.welcomeUserId) {
createRoom({
dmUserId: this.props.config.welcomeUserId,
andView: false,