Skip to content

Commit 63bedc4

Browse files
authored
Merge pull request element-hq#5707 from vector-im/luke/allow-guest-view-group
getGroupStore no longer needs a matrix client
2 parents 58b7530 + bbdafef commit 63bedc4

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎src/components/structures/RightPanel.js‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ module.exports = React.createClass({
127127
return {
128128
phase: this.props.groupId ? this.Phase.GroupMemberList : this.Phase.RoomMemberList,
129129
isUserPrivilegedInGroup: null,
130-
}
130+
};
131131
},
132132

133133
componentWillReceiveProps(newProps) {
@@ -139,9 +139,7 @@ module.exports = React.createClass({
139139

140140
_initGroupStore(groupId) {
141141
if (!groupId) return;
142-
this._groupStore = GroupStoreCache.getGroupStore(
143-
this.context.matrixClient, groupId,
144-
);
142+
this._groupStore = GroupStoreCache.getGroupStore(groupId);
145143
this._groupStore.registerListener(this.onGroupStoreUpdated);
146144
},
147145

@@ -151,7 +149,7 @@ module.exports = React.createClass({
151149
}
152150
},
153151

154-
onGroupStoreUpdated: function(){
152+
onGroupStoreUpdated: function() {
155153
this.setState({
156154
isUserPrivilegedInGroup: this._groupStore.isUserPrivileged(),
157155
});

0 commit comments

Comments
 (0)