RoomState.events fired on RoomState object, not room
parent
6afeeddb36
commit
04731d0ae3
|
@ -346,7 +346,7 @@ const useRoomPowerLevels = (room) => {
|
|||
};
|
||||
}, [room]);
|
||||
|
||||
useEventEmitter(room, "RoomState.events", update);
|
||||
useEventEmitter(room.currentState, "RoomState.events", update);
|
||||
useEffect(() => {
|
||||
update();
|
||||
return () => {
|
||||
|
|
Loading…
Reference in New Issue