RoomState.events fired on RoomState object, not room
parent
6afeeddb36
commit
04731d0ae3
|
@ -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 () => {
|
||||||
|
|
Loading…
Reference in New Issue