RoomState.events fired on RoomState object, not room

pull/21833/head
Bruno Windels 2019-11-13 16:00:13 +01:00
parent 6afeeddb36
commit 04731d0ae3
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ const useRoomPowerLevels = (room) => {
}; };
}, [room]); }, [room]);
useEventEmitter(room, "RoomState.events", update); useEventEmitter(room.currentState, "RoomState.events", update);
useEffect(() => { useEffect(() => {
update(); update();
return () => { return () => {