Pass matrixClient as an argument to GSS constructor

This commit is contained in:
Luke Barnard 2017-09-25 10:02:13 +01:00
parent 791bc5e7ac
commit b8dca58f4f
2 changed files with 10 additions and 8 deletions

View file

@ -430,7 +430,9 @@ export default React.createClass({
},
_loadGroupFromServer: function(groupId) {
this._groupSummaryStore = new GroupSummaryStore(this.props.groupId);
this._groupSummaryStore = new GroupSummaryStore(
MatrixClientPeg.get(), this.props.groupId,
);
this._groupSummaryStore.on('update', () => {
this.setState({
summary: this._groupSummaryStore.getSummary(),