1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

RoomState.events fired on RoomState object, not room

This commit is contained in:
Bruno Windels
2019-11-13 16:00:13 +01:00
parent 6afeeddb36
commit 04731d0ae3

View File

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