mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
dont assign member in getInitialState
This commit is contained in:
parent
92f7e29132
commit
2aaf3e6b89
1 changed files with 1 additions and 2 deletions
|
@ -32,8 +32,6 @@ module.exports = React.createClass({
|
|||
displayName: 'MemberList',
|
||||
|
||||
getInitialState: function() {
|
||||
this._mounted = false;
|
||||
|
||||
const cli = MatrixClientPeg.get();
|
||||
if (cli.hasLazyLoadMembersEnabled()) {
|
||||
return {loading: true};
|
||||
|
@ -43,6 +41,7 @@ module.exports = React.createClass({
|
|||
},
|
||||
|
||||
componentWillMount: function() {
|
||||
this._mounted = false;
|
||||
const cli = MatrixClientPeg.get();
|
||||
if (!cli.hasLazyLoadMembersEnabled()) {
|
||||
this._listenForMembersChanges();
|
||||
|
|
Loading…
Reference in a new issue