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

Add unregiseterListener to GroupStore
This commit is contained in:
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

View File

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