You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-22 18:41:57 +03:00
_loadGroupFromServer -> _initGroupSummaryStore
This commit is contained in:
@ -403,7 +403,7 @@ export default React.createClass({
|
|||||||
|
|
||||||
componentWillMount: function() {
|
componentWillMount: function() {
|
||||||
this._changeAvatarComponent = null;
|
this._changeAvatarComponent = null;
|
||||||
this._loadGroupFromServer(this.props.groupId);
|
this._initGroupSummaryStore(this.props.groupId);
|
||||||
|
|
||||||
MatrixClientPeg.get().on("Group.myMembership", this._onGroupMyMembership);
|
MatrixClientPeg.get().on("Group.myMembership", this._onGroupMyMembership);
|
||||||
},
|
},
|
||||||
@ -418,7 +418,7 @@ export default React.createClass({
|
|||||||
summary: null,
|
summary: null,
|
||||||
error: null,
|
error: null,
|
||||||
}, () => {
|
}, () => {
|
||||||
this._loadGroupFromServer(newProps.groupId);
|
this._initGroupSummaryStore(newProps.groupId);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -429,7 +429,7 @@ export default React.createClass({
|
|||||||
this.setState({membershipBusy: false});
|
this.setState({membershipBusy: false});
|
||||||
},
|
},
|
||||||
|
|
||||||
_loadGroupFromServer: function(groupId) {
|
_initGroupSummaryStore: function(groupId) {
|
||||||
this._groupSummaryStore = new GroupSummaryStore(
|
this._groupSummaryStore = new GroupSummaryStore(
|
||||||
MatrixClientPeg.get(), this.props.groupId,
|
MatrixClientPeg.get(), this.props.groupId,
|
||||||
);
|
);
|
||||||
@ -516,7 +516,7 @@ export default React.createClass({
|
|||||||
editing: false,
|
editing: false,
|
||||||
summary: null,
|
summary: null,
|
||||||
});
|
});
|
||||||
this._loadGroupFromServer(this.props.groupId);
|
this._initGroupSummaryStore(this.props.groupId);
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
this.setState({
|
this.setState({
|
||||||
saving: false,
|
saving: false,
|
||||||
|
Reference in New Issue
Block a user