You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Remove redundant state
This commit is contained in:
@ -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,
|
||||||
|
Reference in New Issue
Block a user