Merge pull request #1544 from matrix-org/luke/groups-store-add-unregister-api

Add unregiseterListener to GroupStore
pull/21833/head
Luke Barnard 2017-10-27 16:10:27 +01:00 committed by GitHub
commit b421fd05ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -92,6 +92,10 @@ export default class GroupStore extends EventEmitter {
this._fetchMembers();
}
unregisterListener(fn) {
this.removeListener('update', fn);
}
getSummary() {
return this._summary;
}