1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-22 18:41:57 +03:00

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(),