mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 11:15:53 +03:00
EventIndexPanel: Fix the removal of the updateCurrentRoom listeners.
The event listeners that update the current room and try to get the current stats from the event index don't seem to be unmounted because this != this confusion. Turning them into arrow methods of the react class fixes this.
This commit is contained in:
parent
2dd093de49
commit
9e3b0fdf7c
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ export default class ManageEventIndexDialog extends React.Component {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
updateCurrentRoom = async (room) => {
|
updateCurrentRoom = async(room) => {
|
||||||
const eventIndex = EventIndexPeg.get();
|
const eventIndex = EventIndexPeg.get();
|
||||||
const stats = await eventIndex.getStats();
|
const stats = await eventIndex.getStats();
|
||||||
let currentRoom = null;
|
let currentRoom = null;
|
||||||
|
|
Loading…
Reference in a new issue