From 2aaf3e6b89ce9d7a781baf1acc4720603caded17 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 10 Sep 2018 17:39:03 +0200 Subject: [PATCH] dont assign member in getInitialState --- src/components/views/rooms/MemberList.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/views/rooms/MemberList.js b/src/components/views/rooms/MemberList.js index 3672196506..4a22df8451 100644 --- a/src/components/views/rooms/MemberList.js +++ b/src/components/views/rooms/MemberList.js @@ -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();