Simplify GroupStore listener registration
This commit is contained in:
parent
1715206f62
commit
e094c32c62
4 changed files with 14 additions and 12 deletions
|
@ -50,12 +50,9 @@ export default withMatrixClient(React.createClass({
|
|||
|
||||
_initGroupStore: function(groupId) {
|
||||
this._groupStore = GroupStoreCache.getGroupStore(this.context.matrixClient, groupId);
|
||||
this._groupStore.on('update', () => {
|
||||
this._groupStore.registerListener(() => {
|
||||
this._fetchMembers();
|
||||
});
|
||||
this._groupStore.on('error', (err) => {
|
||||
console.error(err);
|
||||
});
|
||||
},
|
||||
|
||||
_fetchMembers: function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue