From bbdafeff777d52859d2632a4483efe6e6921adb7 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Tue, 28 Nov 2017 13:17:30 +0000 Subject: [PATCH] getGroupStore no longer needs a matrix client --- src/components/structures/RightPanel.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/structures/RightPanel.js b/src/components/structures/RightPanel.js index 2bfe3fe5..2a19794f 100644 --- a/src/components/structures/RightPanel.js +++ b/src/components/structures/RightPanel.js @@ -127,7 +127,7 @@ module.exports = React.createClass({ return { phase: this.props.groupId ? this.Phase.GroupMemberList : this.Phase.RoomMemberList, isUserPrivilegedInGroup: null, - } + }; }, componentWillReceiveProps(newProps) { @@ -139,9 +139,7 @@ module.exports = React.createClass({ _initGroupStore(groupId) { if (!groupId) return; - this._groupStore = GroupStoreCache.getGroupStore( - this.context.matrixClient, groupId, - ); + this._groupStore = GroupStoreCache.getGroupStore(groupId); this._groupStore.registerListener(this.onGroupStoreUpdated); }, @@ -151,7 +149,7 @@ module.exports = React.createClass({ } }, - onGroupStoreUpdated: function(){ + onGroupStoreUpdated: function() { this.setState({ isUserPrivilegedInGroup: this._groupStore.isUserPrivileged(), });