Fix leaking of GroupStore listeners in RoomList
This commit is contained in:
parent
df1134f092
commit
34e455c6fc
2 changed files with 18 additions and 4 deletions
|
@ -110,6 +110,12 @@ export default class GroupStore extends EventEmitter {
|
|||
this._fetchSummary();
|
||||
this._fetchRooms();
|
||||
this._fetchMembers();
|
||||
|
||||
return {
|
||||
unregister: () => {
|
||||
this.unregisterListener(fn);
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
unregisterListener(fn) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue