Fix leaking of GroupStore listeners in RoomList

This commit is contained in:
Luke Barnard 2017-12-15 14:12:21 +00:00
parent df1134f092
commit 34e455c6fc
2 changed files with 18 additions and 4 deletions

View file

@ -110,6 +110,12 @@ export default class GroupStore extends EventEmitter {
this._fetchSummary();
this._fetchRooms();
this._fetchMembers();
return {
unregister: () => {
this.unregisterListener(fn);
},
};
}
unregisterListener(fn) {